Write a program to print the sum of natural number(1-20).
Answers
Answered by
1
Answer:
#include<stdio.h>
int main( )
{
int z=0;
for(int i=1;i<=20;i++)
{
z+=i;
}
printf("%d",z);
return 0;
}
Similar questions
English,
1 day ago
Math,
2 days ago
Social Sciences,
2 days ago
Math,
8 months ago
Biology,
8 months ago