Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.