Sum of ten natural number ✍✍✍✍


#include<stdio.h>

int main()

{

int c,t=0;
for(c=0; c<10; c++)

{
t=t+c;

}
printf("The sum of the natural number is : %d\n", t);
    
    return 0;
}

Post a Comment

0 Comments