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


Messages In This Thread
My First C++ Project - by Brainless Control - 11-21-2009, 05:47 AM
RE: My first C++ Project - by se7en - 11-21-2009, 07:34 AM
RE: My First C++ Project - by Psycho - 11-28-2009, 04:58 AM
RE: My First C++ Project - by Sagittarius - 12-11-2009, 12:01 AM
RE: My First C++ Project - by Ireqom - 12-17-2009, 05:22 PM
RE: My First C++ Project - by Brainless Control - 12-18-2009, 02:28 AM
RE: My First C++ Project - by wat - 12-21-2009, 02:57 PM
RE: My First C++ Project - by nextlive - 12-24-2009, 02:12 AM

Forum Jump:


Users browsing this thread: 4 Guest(s)