Sunday, 1 March 2015

Write a simple program for addition of two number Using one variable. Condition-no use loop or array.

Leave a Comment
#include<iostream>

#define NUM 20

using namespace std;

void main() {

int number = 30;
cout<<"Sum is = "<<NUM+number;

}


Output =  Sum is = 50
If You Enjoyed This, Take 5 Seconds To Share It