Wednesday, 15 April 2020

C++ Program - Sum of Two Numbers

#include <iostream>
using namespace std;

int main(int argc, char *argv[])
{
 int a,b,c;
 cout<< "\nEnter first number : ";
 cin>>a;
 cout<<"\nEnter second number : ";
 cin>>b;
 c=a+b;
 cout<<"\nThe Sum is : "<<c;
 return 0;
}

Screenshot: 

No comments:

Post a Comment