Skip to content

Instantly share code, notes, and snippets.

@umair313
Created June 30, 2019 09:34
Show Gist options
  • Save umair313/4add59714b69c269c91417f4ff5c8d86 to your computer and use it in GitHub Desktop.
Save umair313/4add59714b69c269c91417f4ff5c8d86 to your computer and use it in GitHub Desktop.
this program will take two number's from user and display sum of two numbers
#include <iostream>
using namespace std;
int main() {
int a,b,result;
cout<< "Enter Number a : ";
cin>>a;
cout<< "Enter Number b : ";
cin>>b;
result=a+b;
cout<< "the sum of "<<a << " and "<<b << " is = " <<result;
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment