Created
March 14, 2018 20:13
-
-
Save anshumanc007/65284bb25316426db946c27277089e17 to your computer and use it in GitHub Desktop.
//testing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<stdio.h> | |
int main() | |
{ | |
int i,n,sum=0; | |
scanf("%d\n",&n); | |
int arr[n]; | |
for (i=0;i<n;i++) | |
{ | |
scanf("%d",&arr[i]); | |
sum=sum+arr[i]; | |
} | |
printf("%d",sum); | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment