Support Forums

Full Version: My First C++ Project
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Code:
#include <iostream>
using namespace std;

int main()
{
    cout << "IQ Test::The Real Deal:: ";
    int a,b;

    cout << "Enter number lower than 5: \n";
    cin >> a;
    cout << "Enter number bigger than 5: \n";
    cin >> b;
    if(a < b) cout << "IQ result: Higher than 50,Good job. \n";
    if(a > b) cout << "IQ Result: lower than 30,You fail. \n";
    if(a==b) cout << "IQ Result: 40,what a shame. \n";
    
    return 0;
}
it's silly i know.
but good for a bigger lol Big Grin
Well, it's a start. Just keep practicing, Xenocide. Smile
LOL...childplay...coding..for only.. under 5 years age
hehe good job! I wish I knew that language! I'll learn myself C++ sometime I think.
Agh!,my lame project bumped lol Smile
Yeah it's nothing special actually.
I'd like to point out the average IQ is 100. An IQ higher than 50 isn't saying much. ;).

Nice job.
nice for a begginer with c++ Smile