View Code of Problem 112

#include<stdio.h>
int main(){
	
	int a[1000],i=0,sum=0;
	int b;
	scanf("%d",&b); 
	while(b--){
		scanf("%d",&a[b]); 
		sum+=a[b];
	}
	printf("%d",sum);
	return 0;
} 

Double click to view unformatted code.


Back to problem 112