Code::Blocks

Posts 15 of 5 · Page 1 of 1
Code::Blocks
I read the guide/lessons by P0SEID0N on Code::Blocks it is really easy to use and I understood like 75% of it in like 40 mins ... so creds to you P0SEID0N !! Ive made this code its based on yours but its better

Code:
#include <iostream>
using namespace std;
int number1, number2, number3;
int main()
{
cout << "Type the FIRST number" << endl;
cin >> number1;
cout << "Type the SECOND number" << endl;
cin >> number2;
cout << "Type the THIRD number" << endl;
cin >> number3;
cout << "The first number PLUS the second number is " << number1 + number2 << endl;
cout << "The first number MINUS the second number is " << number1 - number2 << endl;
cout << "The first number TIMES the second number is " << number1 * number2 << endl;
cout << "The first number DIVIDED the second number is " << number1 / number2 << endl;
cout << "The second number DIVIDED the first number is " << number2 / number1 << endl;
cout << "The first number PLUS the second number PLUS the third number is " << number1 + number2 + number3 << endl;
cout << "The first number TIMES the second number TIMES the third number is " << number1 * number2 * number3 << endl;
return 0;
}



Good job.

You could use cin.Get(); or Getch(); instead of return 0; though.
Nice. Just like gh said. lol
Nice work. My next tutorial will probably be on control structures so you can do if statements.
Posts 15 of 5 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Need help?