64 678
Assignments Done
Successfully Done
In September 2018

Answer to Question #30349 in Algebra for shagufta

Question #30349
Write a c++ program to find the sum of 0.123 * 1000 and 0.456 * 100 and write the result in three significant digits.
Expert's answer
#include <iostream>

using namespace std;

int main()

double a=0.123 * 1000;
double b=0.456 * 100;
double c=a+b;

cout << "c= " <<c<< endl;
return 0;

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!


No comments. Be first!

Leave a comment

Ask Your question

Privacy policy Terms and Conditions