Computer Science, asked by asharamlic1512, 1 month ago

which program to print the product all natural numbers from 1 to a given number​

Answers

Answered by harikishoresawanth
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 santoshdandar
1

Answer:

false is correct option

Similar questions