Skip to content

Instantly share code, notes, and snippets.

@anshumanc007
Created March 14, 2018 20:13
Show Gist options
  • Save anshumanc007/65284bb25316426db946c27277089e17 to your computer and use it in GitHub Desktop.
Save anshumanc007/65284bb25316426db946c27277089e17 to your computer and use it in GitHub Desktop.
//testing
#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