#include <iostream>
using namespace std;
int main(){
int age=36;
if(age>=1{
if(age<=17){
if(age>=30){
if(age>=40){
cout<< " you old af\n";
}
cout<< "your starting to get old\n";
}
cout<< "your hella young bro\n";
}
cout<< "your grown go get a job\n";
}
return 0;}
int main(){
int age=36;
if(age>=1{cout<< "your grown go get a job\n";}
if(age<=17){cout<< "your hella young bro\n";}
if(age>=30){cout<< "your starting to get old\n";}
if(age>=40){cout<< " you old af\n";}
}
#include <iostream>
using namespace std;
int main(){
int age=36;
if(age>=1{
if(age<=17){
if(age>=30){
if(age>=40){
cout<< " you old af\n";
}
cout<< "your starting to get old\n";
}
cout<< "your hella young bro\n";
}
cout<< "your grown go get a job\n";
}
return 0;}
int main(){
int age=36;
if(age>=1{cout<< "your grown go get a job\n";}
if(age<=17){cout<< "your hella young bro\n";}
if(age>=30){cout<< "your starting to get old\n";}
if(age>=40){cout<< " you old af\n";}
}
int main()
{
const int age = 36;
if ( age >= 18 )
{
cout << "your grown go get a job\n";
/*Assuming that you're not going to tell a 40 yo person that's "she is starting to get old" before telling her that she is old as fuck
( because that's not logical, right ), you need to use "else if" */
if ( age >= 30 )
{
cout << "your starting to get old\n";
}
else if ( age >= 40 )
{
cout << " you old af\n";
}
}
else if ( age <= 17 )
{
cout << "your hella young bro\n";
}
}
#include<iostream>
using namespace std;
int main()
{
int age;
cin>>age;
if ( age >= 40 )
{
cout << "you old af\n";
}
else if( age >= 30 )
{
cout << "your starting to get old\n";
}
else if ( age >= 18 )
{
cout << "your grown go get a job\n";
}
else if ( age <= 17 )
{
cout << "your hella young bro\n";
}
}
Copyright © 2024, NextGenUpdate.
All Rights Reserved.