Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
My First C++ Project
#1
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.
Reply
#2
but good for a bigger lol Big Grin
Reply
#3
Well, it's a start. Just keep practicing, Xenocide. Smile
<Aoi-chan> everyone's first vi session. ^C^C^X^X^X^XquitqQ!qdammit[esc]qwertyuiopasdfghjkl;:xwhat
Reply
#4
LOL...childplay...coding..for only.. under 5 years age

[Image: ubuntu_5.11.jpg]
Reply
#5
hehe good job! I wish I knew that language! I'll learn myself C++ sometime I think.
Reply
#6
Agh!,my lame project bumped lol Smile
Yeah it's nothing special actually.
Reply
#7
I'd like to point out the average IQ is 100. An IQ higher than 50 isn't saying much. ;).

Nice job.
Reply
#8
nice for a begginer with c++ Smile
Reply


Forum Jump:


Users browsing this thread: 8 Guest(s)