#include<conio.h>
#include<iostream.h>
void main()
{
clrscr();
int num1,num2,num3;
float average;
cout<<"Enter Three student marks.\n" ;
cin>>num1>>num2>>num3;
average=(num1+num2+num3)/3;
cout<<"Average of " <<num1 <<" "<<num2<<" "<<num3<<"is " <<average;
}
#include<iostream.h>
void main()
{
clrscr();
int num1,num2,num3;
float average;
cout<<"Enter Three student marks.\n" ;
cin>>num1>>num2>>num3;
average=(num1+num2+num3)/3;
cout<<"Average of " <<num1 <<" "<<num2<<" "<<num3<<"is " <<average;
}
No comments:
Post a Comment