#include<iostream.h>
#include<conio.h>
void main()
{
clrscr() //to clear the screen
float a,b,c,sum,av;
cout<<“Enter three numbers:”;
cin>>a>>b>>c;
sum=a+b+c;
av=sum/3;
cout<<“nSUM=”<<sum;
cout<<“nAverage=”<<av;
getch(); //to stop the screen
}
Friday, 15 September 2017
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment