Pages

Tuesday, February 9, 2016

C program to print 1 to 10 numbers using for loop.


#include<stdio.h>
int main()
{
  int i;
  for(i=1; i<=10; i++)
  {
printf("%d ", i);
  }
  return 0;
}

Output of the program

1 2 3 4 5 6 7 8 9 10


1 comment: