+ 1

Write a c++ program ,calculate the CGPA of 5

7th Mar 2017, 9:10 PM
Merit
3 Respostas
+ 3
u can't assign cgpa of all 5 person's using single variable"cgpa"
23rd Mar 2017, 2:58 PM
pradeep danda
- 1
cgpa=a/9.5=b/9.5... here's an error
23rd Mar 2017, 2:55 PM
pradeep danda
- 1
#include<iostream.h> #include<conio.h> void main() { clrscr(); float a[5]; for( int i=0; i<5; i++) { cout<<"Enter % marks obtained by "<<i+1<<" student\n"; cin>>a[i]; a[i]=a[i]/9.5; cout<<"CGPA of "<<i+1<<" student is "<<a[i]<<"\n"; } getch(); }
25th Mar 2017, 4:57 AM
utkarsh jain
utkarsh jain - avatar