for Statement or for loop C Programming /*Write a Program to print the 1 To 10 Numbers using for loop*/ #include< stdio.h > #include< conio.h > void main() { int i; clrscr(); for(i=1;i<=10;i++) //initial value;test condition;increment/decrement { printf("\n I=%d",i); } getch(); } Output is as : I=1 I=2 I=3 I=4 I=5 I=6 I=7 I=8 I=9 I=10 Read more » Tweet Share Share Share Share Related Post
ConversionConversion EmoticonEmoticon