write a program to print number from 1 to 15th
Answers
Answered by
1
Answer:
#include<stdio.h>
int main()
{
int i=1;
for(i=1;i<=15;i++)
{
/* This statement is executed till the condition in above 'for loop' is true. The space after %d is used for separating the numbers.*/
printf("%d ",i);
}
return 0;
}
output- 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
Explanation:
Similar questions