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.
#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;
}
Comments
Leave a comment