Answer to Question #186920 in C++ for Fwangshak Lekshak

Question #186920

Use any high-level language to implement as much statements as possible


1
Expert's answer
2021-04-28T23:29:04-0400
//C++ program with statements
#include <iostream>


using namespace std;


int main()
{
    int a = 7;
    int b = 7;
    int c;
    c = a + b;
    cout<<"The value of a is "<<a<<endl;
    cout<<"The value of b is "<<b<<endl;
    cout<<"The value of c is "<<c<<endl;


    if(a > b)
    {
        cout<<"a is greater than b"<<endl;
    }
    if(b > a)
    {
        cout<<"b is greater than a"<<endl;
    }




    cout<<"The product of a and b is "<<a * b <<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