Answer to Question #182994 in C++ for Vincenzo Santoro

Question #182994

Consider the following program segment:

//include statement(s)
//using namespace statement
 
int main()
{
//variable declaration
 
//executable statements
 
//return statement
}

Write a C++ statement that includes the header file iostream.


1
Expert's answer
2021-04-19T19:09:49-0400
#include<iostream>
using namespace std;
int main(){
    int a;
    int b;
    cout<<"Enter value of a and b: "<<endl;
    cin>>a>>b;
    cout<<"Sum of a and b"<<a+b;
    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