===========================================================================
CODING
#include<iostream.h>
#include<conio.h>
#include<math.h>
void main()
{
clrscr();
float q,w,e,r,t,a,p;
cout<<"Enter your marks in 1st sub. :- ";
cin>>q;
cout<<"Enter your marks in 2nd sub. :- ";
cin>>w;
cout<<"Enter your marks in 3rd sub. :- ";
cin>>e;
cout<<"Enter your marks in 4th sub. :- ";
cin>>r;
cout<<"Enter your marks in 5th sub. :- ";
cin>>t;
a=(q+w+e+r+t)/5;
p=a;
cout<<"\n The Aggregate marks is Æ "<<a;
cout<<"\n The Percentage marks isÆ "<<p<<"%";
getch();
}
CODING
#include<iostream.h>
#include<conio.h>
#include<math.h>
void main()
{
clrscr();
float q,w,e,r,t,a,p;
cout<<"Enter your marks in 1st sub. :- ";
cin>>q;
cout<<"Enter your marks in 2nd sub. :- ";
cin>>w;
cout<<"Enter your marks in 3rd sub. :- ";
cin>>e;
cout<<"Enter your marks in 4th sub. :- ";
cin>>r;
cout<<"Enter your marks in 5th sub. :- ";
cin>>t;
a=(q+w+e+r+t)/5;
p=a;
cout<<"\n The Aggregate marks is Æ "<<a;
cout<<"\n The Percentage marks isÆ "<<p<<"%";
getch();
}
===========================================================================
No comments:
Post a Comment