Skip to content

Instantly share code, notes, and snippets.

@programmingfaster0226
Created February 20, 2018 21:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save programmingfaster0226/63ee6f550c7ffa5a1fce9d65873cb02c to your computer and use it in GitHub Desktop.
Save programmingfaster0226/63ee6f550c7ffa5a1fce9d65873cb02c to your computer and use it in GitHub Desktop.
programmingfaster.com
#include<stdio.h>
#include<conio.h>
void main()
{
int a[10],i,sum=0;
printf("enter the number:");
for(i=0;i<7;i++)
{ scanf("%d\t",a+i);
sum+=*(a+i);
}
printf("\n sum=%d",sum);
getch();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment