Answer to Question #271170 in C++ for ayush

Question #271170

Write a program to initialize 4 integer numbers. Calculate Sum and Print it.

1
Expert's answer
2021-11-25T00:53:08-0500
#include <iostream>


using namespace std;


int main()
{
    int a=56, b=47,c=37, d=36;
    int sum=0;
    sum =a+b+c+d;
    cout <<"The sum is:"<<sum<< 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!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS