Headlines
C Program for Calculating grades of ā€œNā€ students from 3 tests

C Program for Calculating grades of ā€œNā€ students from 3 tests

Calculating grades of ā€œNā€ students from 3 tests.
Sample data: No of students : 3
Enter 3 scores for student1: 67 56 43
Enter 3 scores for student2: 56 78 89
Enter 3 scores for student3: 87 54 75
S.No. score1 score2 score3 Ave Grade
----------------------------------------------------------------------------------
1. 67 56 43 55 C
2. 56 78 89 74 B
3. 87 54 75 72 B
-----------------------------------------------------------------------------------*/
#include<stdio .h="">
#include<conio .h="">
void main()
{
 int n,m1[100],m2[100],m3[100],i;
 float avg[100];
 char grade[100];
 clrscr();
 printf("Enter the total number of students: ");
 scanf("%d",&amp;n);
 for(i=0;i<n 3="" :="" avg="" d="" for="" i="" if="" m1="" m2="" m3="" nenter="" of="" printf="" scanf="" scores="" student="">=75)
    grade[i]='A';
    else if(avg[i]&gt;=60 &amp;&amp; avg[i]<75 avg="" else="" grade="" i="" if="">=45 &amp;&amp; avg[i]</75></n></conio></stdio>
*** PLEASE checkout the Best deals from for top sites like Amazon, Flipkart etc ***