Take 2 inputs from user and print the sum | Ameer Yousuf - C++ Programs Codes

Latest

Sunday, 31 January 2021

Take 2 inputs from user and print the sum | Ameer Yousuf

 CODE:

#include<iostream>
using namespace std;
int main(){
int a,b,c;
cout<<"Enter the First number: ";
cin>>a;
cout<<"Enter the Second number: ";
cin>>b;
c=a+b;
cout<<"The sum is : "<<c<<endl;
}

OUTPUT:





No comments:

Post a Comment

Plz don't enter any spam link in the comment box!