#include
using std::cin;
using std::cout;
using std::endl;
int main()
{
float num1(0.0f);
cout << endl << "Enter first number: ";
cin >> num1;
float num2(0.0f);
cout << endl << "Enter second number: ";
cin >> num2;
cout << endl << num1 << " + " << num2 << " = " << (num1 + num2)
<< endl << "Average is: " << (num1 + num2)/(2.0f)
<< endl;
system("PAUSE");
return 0;
}
How to write a program for mouse in microprocessor?
Write your program and if you are having a problem post it here with a description of the problem you are having. What you are asking is for someone to do your homework for you. no i am asking to verify my answer
You really don't want to do this in a shell script - scripting languages in Unix typically do not handle or work with floating values, only integers. A better way would be to write a program to do this that works under Unix, such as a 'C" program. See the related link for an example
write a lex program to delete space from the program
write an assembly language program to find sum of N numbers
Cls input "enter two no.s ",a,b sum=a+b print "sum = ";sum end
write a shell program for finding out gcd of three given numbers? write a shell program for finding out gcd of three given numbers? write a shell program for finding out gcd of three given numbers? check bellow link http://bashscript.blogspot.com/2009/08/gcd-of-more-than-two-numbers.html
fdsgfhgdfhgdf
program to find maximum of two numbers using pointers
write it in 8085
To write a C++ program to display the student details using class and array of object.
Q.1 Write a program to print first ten odd natural numbers. Q.2 Write a program to input a number. Print their table. Q.3 Write a function to print a factorial value.