Tuesday, July 28, 2009

Turbo c help?

please help me!!





this will be the output:





1


12


123


1234


12345


123456


1234567


12345678


123456789


12345678910

Turbo c help?
There is a small correction in funky_dude's program


Here is the modification of that program





#include%26lt;conio.h%26gt;


void myfun()


{


int p,q;





for (p=1;p%26lt;=11;p++)


{


for(q=1;q%26lt;p;q++)


{


printf("%d ",q);


}


printf("\n");


}


}


void main()


{


clrscr();


myfun();


getch();


}





hai funky_dude's please dont mistake me.


It was just a help from me to the questioner ok
Reply:i think u want the above output to be printed in a C program








void myfun()


{


int p,q;





for (p=1;p%26lt;10;p++)


{


for(q=0;q%26lt;p;q++)


{


printf("%d ",p+q);


}


printf("\n");


}


}


void main()


{


myfun();


}
Reply:If you can't be bothered to form a complete question, then I'm damned if I'm going to form a complete answer!





Rawlyn.

avender

No comments:

Post a Comment