Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Let's write some code.

Name: Anonymous 2008-02-22 5:28

try {

Name: Anonymous 2008-02-26 18:24

#include <iostream>

using namespace std;

int main()

{

    float agefloat;
    cout<<"Your age? ";
    cin>> agefloat;
    cin.ignore();
    if (agefloat < 12){cout<<"\n\nYou are a child";}
    else if(agefloat < 18) {cout<<"\n\nYou are a Teenager";}
    else if(agefloat < 55) {cout<<"\n\nYou are an Adult";}
    else if(agefloat < 75) {cout<<"\n\nYou are a reletively old Adult";}
    else if(agefloat < 100){cout<<"\n\nYou are a very old adult; you have most likely exceded the estimated lifespan of your country... Kudos!";}
    else if(agefloat < 115){cout<<"\n\nYou are a exceddingly aged Adult and have ultimately exceeded the likely lifespan of a Human... Huge Kudos to you!";}
    else if(agefloat > 115){cout<<"\n\nYou are a liar!";}
    cin.get();

}






That is a quick age program thing i threw together to demonstrate C++ to my friend.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List