Q:

Write a program in C++ to compute the specified expressions and print the output

0

Write a program in C++ to compute the specified expressions and print the output

Sample Output:

 Compute the specified expressions and print the output:              
------------------------------------------------------------          
 Result of the expression (25.5 * 3.5 - 3.5 * 3.5) / (40.5 - 4.5) is : 2.13889 

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

#include <iostream>
using namespace std;
 
int main()
{
    cout << "\n\n Compute the specified expressions and print the output:\n";
	cout << "------------------------------------------------------------\n";
    cout << " Result of the expression "<<"(25.5 * 3.5 - 3.5 * 3.5) / (40.5 - 4.5) is : "<< (25.5 * 3.5 - 3.5 * 3.5) / (40.5 - 4.5) <<"\n" ; 
}

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Similar questions


need a help?


find thousands of online teachers now