-
-
Save programmingfaster0226/63ee6f550c7ffa5a1fce9d65873cb02c to your computer and use it in GitHub Desktop.
programmingfaster.com
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> | |
#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