Write a C program to find the sum marks of n students using arrays?
BHUKYA ARUN KUMAR , 11 Years ago
Grade 12th pass
1 Answers
Komal
Last Activity: 9 Years ago
Example of array in C programming #include <stdio.h> int main(){ int marks[10],i,n,sum=0; printf("Enter number of students: "); scanf("%d",&n); for(i=0;i<n;++i){ printf("Enter marks of student%d: ",i+1); scanf("%d",&marks[i]); sum+=marks[i]; } printf("Sum= %d",sum); return 0; }
Provide a better Answer & Earn Cool Goodies
Enter text here...
LIVE ONLINE CLASSES
Prepraring for the competition made easy just by live online class.
Full Live Access
Study Material
Live Doubts Solving
Daily Class Assignments
Ask a Doubt
Get your questions answered by the expert for free
Enter text here...
Other Related Questions on Discuss with colleagues and IITians