/* print 1 to 10 using while loop */
#include<stdio.h>
int main()
{
int i=1;
while(i <= 10)
{
printf("%d\n",i);
i++;
}
return 0;
}
Related Post
Print 1 to 10 using for loop
http://cbasicprogram.blogspot.in/2012/02/print-1-to-10-using-for-loop.html
#include<stdio.h>
int main()
{
int i=1;
while(i <= 10)
{
printf("%d\n",i);
i++;
}
return 0;
}
Related Post
Print 1 to 10 using for loop
http://cbasicprogram.blogspot.in/2012/02/print-1-to-10-using-for-loop.html
It's not working! :(
ReplyDeleteits working :)
Deleteit's working...
ReplyDeleteno its not working in turbo c++
ReplyDeleteIn turbo CPP, use void main() instead of int main().. and leave out the return 0. It should work then
DeleteIt's working
Delete#programe to print 20 numbers using a while loop
DeleteI=0
While 1<20
Print (i,end-" ")
I≠ i+1
I read that Post and got it fine and informative. 3d printer cost
ReplyDeleteAtempsiQsfigya Nicholas Patel https://marketplace.visualstudio.com/items?itemName=frigitine.Mekabolt-gratuita
ReplyDeleterifftuconfimb
mismoul-ho1991 James Sealy download
ReplyDeletelonigavi