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..
<p dir="auto"><a href="https://images.hive.blog/1536x0/https://steemitimages.com/DQmbmJgEfKqumN9v2QUcrhEXqZM8ePU2mRjQG47gG7aJt8z/pr.PNG">
<img src="https://images.hive.blog/768x0/https://steemitimages.com/DQmbmJgEfKqumN9v2QUcrhEXqZM8ePU2mRjQG47gG7aJt8z/pr.PNG" alt="pr.PNG" srcset="https://images.hive.blog/768x0/https://steemitimages.com/DQmbmJgEfKqumN9v2QUcrhEXqZM8ePU2mRjQG47gG7aJt8z/pr.PNG 1x, https://images.hive.blog/1536x0/https://steemitimages.com/DQmbmJgEfKqumN9v2QUcrhEXqZM8ePU2mRjQG47gG7aJt8z/pr.PNG 2x" />
<p dir="auto"><span><a href="/trending/include">#include< iostream>
<p dir="auto">using namespace std;<br />
int main() // Main body of the program without with the program can,t be execute<br />
{<br />
int a , b , sum; // Initilizing values for sum
<pre><code>// a for the first integer value and b for the second integer value
cout<<"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<<endl; // endl statment in the count is used for line spacing
cin>>a>>b; //Cin is use to take values form the user at run time.
sum = a + b; // taking the interger value for the addition
cout<<"Sum = "<<sum; // This cout statment is used for showing the answer saved in Sum
cout<<endl;
return 0; //I have used int with the main so now i have to return some intger values.
<p dir="auto">}
<h2>Result
<p dir="auto"><br />
a = 10<br />
b = 20<br />
sum = 30<a href="https://images.hive.blog/1536x0/https://steemitimages.com/DQmQm5sa5M5kRYbGLjBX6we8NVevG5XFuUF8Z6a62JvetHy/ans.PNG">
<img src="https://images.hive.blog/768x0/https://steemitimages.com/DQmQm5sa5M5kRYbGLjBX6we8NVevG5XFuUF8Z6a62JvetHy/ans.PNG" alt="ans.PNG" srcset="https://images.hive.blog/768x0/https://steemitimages.com/DQmQm5sa5M5kRYbGLjBX6we8NVevG5XFuUF8Z6a62JvetHy/ans.PNG 1x, https://images.hive.blog/1536x0/https://steemitimages.com/DQmQm5sa5M5kRYbGLjBX6we8NVevG5XFuUF8Z6a62JvetHy/ans.PNG 2x" />
<p dir="auto">Follow me for the more programs for your daily life
<h1><span>Follow me <a href="/@palwasha">@palwasha
BTW its a great post
This is good for the starters
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
you are supporting this person its great to have peoples like you here
Nice! Thanks for this, I am (re)learning C++ right now, and soaking up all the tutorials I can get my hands on.