Sum program in C++

in program •  6 years ago 

This is the simple program developed by me in C++ for the purpose of sum.
It will take two value from user then it will sum the value and show the answer.

source

#include< iostream>
using namespace std;
int main()
{

int a , b , sum;
//Enter value of a
cin>>a;
//Enter the value of b
 sum=a+b; // it will save the value of a and b in sum
 cout<<sum // This will show the value of the sum
 return 0;

}

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!
Sort Order:  

i also know a bit of programming

this is soo simple

Congratulations @palwasha! You have completed the following achievement on Steemit and have been rewarded with new badge(s) :

Award for the number of upvotes received

Click on the badge to view your Board of Honor.
If you no longer want to receive notifications, reply to this comment with the word STOP

To support your work, I also upvoted your post!

Do you like SteemitBoard's project? Then Vote for its witness and get one more award!