Saturday, January 30, 2010

CHAP 3[E]g Printing diamond and hearts

Write a program to fill the entire screen with diamond and heart alternatively. The ASCII value for heart is 3 and that of diamond is 4.

void main()
{
float d=1;
while(d<9999)
{
printf("%c%c",3,4);
d++;
}
}

4 comments:

  1. I THINK ITS NT WRKING,,,,PLZ CHECK IT OUT...
    FLOAT TYPE OR CHAR TYPE ITS CONFUSION,,

    ReplyDelete
  2. It's working fine...

    ReplyDelete
  3. aur dikaaooooo ne lalla...it working finee raaa

    ReplyDelete
  4. When your website or blog goes live for the first time, it is exciting. That is until you realize no one but you and your. Print Production

    ReplyDelete