Computer Science, asked by rukundofabrice222, 2 months ago

write a program in c programming to calculate sum of 2 numbers where a=10

Answers

Answered by biswaspami455
0

Answer:

#include<stdio.h> 

#include<stdlib.h> 

 

int main() 

int sum=0,num; 

printf("Enter 10 numbers : "); 

for(int i=0;i<10;i++) 

scanf("%d",&num); 

sum+=num; 

printf("Sum = %d",sum); 

Similar questions