If-else Program In C++

in #c8 years ago

Simple If else program in C++ where program it ask user to enter age at runtime and then it will then that you are young or old.

https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcROE7cWnPHNY74m_z2h6sdOqO0beP3h_dvoJlGXfXldE9kZ1a8lHA

#include < iostream>

using namespace std;

int main()
{
int age;

cout<<"Please input your age: ";
cin>> age;

if ( age <= 30 ) {
cout<<"You are pretty young!\n";

}
else {
cout<<"You are really old\n";
}

}

Sort:  

nice program

i like coding thanks for the coding

This post has received gratitude of 0.70 % from @appreciator thanks to: @wajahatsardar.

You got a 0.39% upvote from @upme requested by: @wajahatsardar.
Send at least 1.5 SBD to @upme with a post link in the memo field to receive upvote next round.
To support our activity, please vote for my master @suggeelson, as a STEEM Witness

Hello there, you probably heard about STEEMER.NET Project for STEEM platform.
I'm running budget proposal campaign on Steemit where im looking for investors /
donators to fund future STEEM Windows and Android apps - STEEMER.NET. Would you please consider
contributing to this cool projects with SBD / STEEM / SP donation to my account @cryptomonitor or
upvoting my latest presentation / post where i described STEEMER.NET Project in detail?
https://steemit.com/investors-group/@cryptomonitor/steemer-net-steem-blockchain-transactor-for-windows-android-app-funding-update-243-1200-sbd-28-12-2017
Thank you in advance - @cryptomonitor (Discord contact: cryptomonitor#0447)