which program to print the product all natural numbers from 1 to a given number
Answers
Answered by
1
#include <stdio.h>
#include<conio.h>
int main()
{
int i, n;
clrscr();
printf("Enter any number: ");
scanf("%d", &n);
printf("Natural numbers from 1 to %d : \n", n);
for(i=1; i<=n; i++)
{
printf("%d\n", i);
}
return 0;
getch();
}
Answered by
1
Answer:
false is correct option
Similar questions