C for loop example

0
Let's see the simple program of for loop that prints table for 1

CODES:> 
  • #include<stdio.h>
  • #include<conio.h>
  • Int main ( )
  • {
  • Int i=0;
  • For ( i=1; i<=10; i++ )
  • {
  • Printf("%d\n"i);
  • }
  • Getch( );
  • }

OUTPUT:
1
2
3
4
5
6
7
8
9
10

Post a Comment

0Comments
Post a Comment (0)