__________     __ __     __  _______    ________
  / ____/ __ \   / // /    / / / /  _/ |  / / ____/
 / / __/ / / /  / // /_   / /_/ // / | | / / __/
/ /_/ / /_/ /  /__  __/  / __  // /  | |/ / /___
\____/\____/     /_/    /_/ /_/___/  |___/_____/

 --- A GOPHER-LIKE INTERFACE FOR HIVE BLOCKCHAIN ---

Simple addition program In C++

BY: @palwasha | CREATED: April 28, 2018, 6:20 a.m. | VOTES: 6 | PAYOUT: $0.17 | [ VOTE ]

Hello friend today i am back with other simple program of addition ..
coding is the amazing thing and i love to code and i want to share my work with you i hope you will like this..

[IMAGE: https://steemitimages.com/DQmbmJgEfKqumN9v2QUcrhEXqZM8ePU2mRjQG47gG7aJt8z/pr.PNG]

include< iostream>

using namespace std;
int main() // Main body of the program without with the program can,t be execute
{
int a , b , sum; // Initilizing values for sum

// a for the first integer value and b for the second integer value

cout&lt;&lt;"Enter values for addition "; // Cout statment is used to display the values of digits you writes on the screen

//Here i used this for the user to understand what to do.

cout&lt;&gt;a&gt;&gt;b; //Cin is  use to take values form the user at run time.


sum = a + b; // taking the interger value for the addition

cout&lt;&lt;"Sum =  "&lt;&lt;sum; // This cout statment is used for showing the answer saved in Sum

cout&lt;&lt;endl;

return 0; //I have used int with the main so now i have to return some intger values.

}

Result

[IMAGE: https://steemitimages.com/DQmQm5sa5M5kRYbGLjBX6we8NVevG5XFuUF8Z6a62JvetHy/ans.PNG]
a = 10
b = 20
sum = 30

Follow me for the more programs for your daily life

Follow me @palwasha

TAGS: [ #program ] [ #life ] [ #addition ] [ #utopian-io ] [ #development ]

Replies

@eosdallas | April 28, 2018, 6:25 a.m. | Votes: 1 | [ VOTE ]

Nice! Thanks for this, I am (re)learning C++ right now, and soaking up all the tutorials I can get my hands on.

@wajahatsardar | April 28, 2018, 6:45 a.m. | Votes: 2 | [ VOTE ]

wow cool.. nice program keep it up wish you the best of luck for the more programs and work have a nice day my freind

@sauper-saiyanbot | April 29, 2018, 11:08 a.m. | Votes: 3 | [ VOTE ]

you are supporting this person its great to have peoples like you here

@sauper-saiyanbot | April 29, 2018, 11:07 a.m. | Votes: 3 | [ VOTE ]

This is good for the starters

@sauper-saiyanbot | April 29, 2018, 11:08 a.m. | Votes: 3 | [ VOTE ]

BTW its a great post

@steembottrackerr | May 6, 2018, 6:04 a.m. | Votes: 0 | [ VOTE ]

https://steemitimages.com/200x200/https://s-media-cache-ak0.pinimg.com/originals/81/28/3c/81283c6aed7bdb5b9f8ad73b8ce62c2f.jpg

Hello @palwasha , Congratulations ✅ . Your content began to appear in the hot section.
I am the information account of "SteemBotTracker" site.

Your Informations
Total SBD: 36.278
Total STEEM: 0.024

I recommend to increase this;
You can make "Resteem" and advertise to the followers of the whale accounts.
"Resteem Bot" for you;
✅ The most profitable Resteem Whale @byresteem has 25.500 Followers + 7000 Sp + Upvote with min +55 accounts.

You can purchase "upvote" by bid bots.
"Upvote Bot"
✅ The most profitable whale in the last round. @postpromoter

I'm taking this message once. You need to use the #steembottrackerr tag for more information.
Those who "upvote" this interpretation will be awarded a "UpVote" prize of 100 Sbd per week per person.
I am a bot, I can not answer the comment. I hope I could help. Good luck. Sorry if I disturbed you.

[ BACK TO TRENDING ] [ BACK TO MENU ]
CMD>