Write a C program that outputs to standard out the numbers from 1 to
10 with comma separation using a 'for' loop. This list of numbers should be on a
single line (put a newline character at the end of the line). Place your answer in the
file called 'count.c' in the Q3 directory. When run from the command line you should
see:
$ ./count
1,2,3,4,5,6,7,8,9,10
$
#include<stdio.h>
main()
{
int i;
for(i=1;i<=10;i++)
printf("%d,",i);
printf("\n");
}