Thursday, 16 May 2013

Find average of two numbers

#include<iostream.h>
#include<conio.h>
void main()
{
float a,b,average;
cout<<"Enter two numbers";
cin>>a>>b;
average=(a+b)/2;
cout<<"\n Average of two numbers is"<<average;
getch();
}

No comments:

Post a Comment

full details in json
Proudly Powered by Blogger.
back to top