1.

In the following program, some lines are missing. Fill the missing lines and complete it.#include<iostream.h> {4 int num1, num2, sum; Cout<<“Enter two numbers:”;…………..………….Cout<<"sum of numbers are=”<<sum; }

Answer»

The correct program is given below.

#include<iostream> 

using namespace std;

int main()

{

int num1, num2, sum; 

Cout<<“Enter two numbers:”;

cin>>num1>>num2;

sum = num1+num2;

Cout<<"sum of numbers are=”<<sum; 

}



Discussion

No Comment Found

Related InterviewSolutions