SUCCESS!
Lol thanks for your help both of you =). Now i just gotta write the rest of the program. Heres the code so far.
Code:
#include <iostream>
using namespace std;
int main()
{
int X;
int Z;
int Y;
cout<<"This program is designed to work as a times table. Please enter a number from 1-9 and all of the expressions up to *9 will be displayed for that number.\n";
cout<<endl;
cout<<"Please enter the number you would like a times table for: ";
cin>> X;
cin.ignore();
if ( X == 1 ) {
for ( X = 1, Y = 1, Z = 1; Y < 10; X * Y ) {
cout<<X << "*" <<Y <<"="<< Z <<endl;
Z++;
Y++;
}
}
cin.get();
}
It obviously only works for 1 right now but still i should be able to finish in like 30 or 40 minutes.
*******
Actually i lied that didnt work. THIS worked
Code:
if ( X == 2 ) {
for ( X, Y = 2, Z = 1; Z < 10; X = Y * Z ) {
cout<<Y << "*" <<Z <<"="<< X <<endl;
Z++;
}
Alright now everything seems to be working fine =) thanks again guys.