Computer Science, asked by rgk06972, 4 months ago

Date : /
and point
write a Basic program Input marks of 30 Student and Calculate and print the average​

Answers

Answered by mjeystech
1

Answer:

#include<stdio.h>

#include<conio.h>

void main()

{

int i;

int Avg;

int maks[40]; /* Array Declaration */

clrscr();

sum=0;

for( i=0 ; i<=29 ; i++)

{

printf(" Enter Marks/n ");

scanf("%d" , &marks[i] ); /* Store Data in Array */

}

for( i=0 ; i<=29 ; i++ )

{

Sum = sum + marks[i]; /* Read Data from an Array */

Avg = Sum/30;

printf(" Average Marks = %d\n" , Avg);

}

}

Similar questions