Write a program to sum of two numbers giving the value at runtime


/*Write a program to sum of two numbers giving the value at runtime .*/

#include<iostream.h>

#include<conio.h>

void main()

{

int a,b;

clrscr();

cout<<“enter the value of a=”;

cin>>a;

cout<<“enter the value of b=”;

cin>>b;

a=a+b;

b=a-b;

a=a-b;

cout<<“a=”<<a<<endl;

cout<<“b=”<<b;

getch();

}

Related Posts

Comments are closed.