Program to print the average of two number in C++


#include<iostream.h>
#include<conio.h>
void main()
{
int num1,num2;
float ave;
clrscr();
cout<<"enter the two no\n";
cin>>num1>>num2;
ave=float(num1+num2)/2;
cout<<"The average of two no is = "<<ave;
getch();
}


Output:

About the Author

Unknown

Author & Editor

Has laoreet percipitur ad. Vide interesset in mei, no his legimus verterem. Et nostrum imperdiet appellantur usu, mnesarchum referrentur id vim.

Post a Comment

 
My Study Voice © 2015 - Designed by Templateism | Distributed By Blogger Templates