Computer Science, asked by arham240, 2 days ago

Write a program to print the sum of natural number(1-20).

Answers

Answered by guruguru6631
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