Tuesday, August 23, 2016

Average Of Three Numbers in C++

#include<iostream>
using namespace std;
int main()
{
float a,b,c,sum,av;
cout<<"Enter three numbers ";
cin>>a>>b>>c;
sum=a+b+c;
av=sum/3;
cout<<"Average of three numbers is "<<av;
return 0;
}




Do Comment,Share :)
Sharing is Caring ;)

No comments:

Post a Comment