Use any high-level language to implement as much statements as possible
//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;
}
Comments
Leave a comment