Hehe yes been confused >_<
mmm do you mean doing this stuff?
Code:
#include <iostream>
using namespace std;
//Prototypes
int getNumber( );
void displayTable(int);
int main()
{
int tableAnswer;
int firstNumber;
tableAnswer=displayTable();
firstNumber=getNumber();
system ("pause");
return 0;
}
//function definitions
int getNumber(numberInput)
{
int numberInput;
cout<<"Please enter a number"<<endl;
cin>>numberInput;
return numberInout;
}
void displayTable(int firstNumber)
{
int Number;
for (Number=0; Number<=10; Number++)
{
tableAnswer=firstNumber*Number;
cout<<firstNumber<<" x "<<Number<< " = "<<tableAnswer<<'\n';
}
It tells me i am doing something wrong with this part
Code:
//Prototypes
int getNumber( );
void displayTable(int);
int main()
{
int tableAnswer;
int firstNumber;
tableAnswer=displayTable();
firstNumber=getNumber();
Yeah I was sorta in a group thing with my teacher today but this is due on Sunday and I have classes tomorrow so it doesn't leave me much time to do a study group lol last project I was really stuck took me about 4 days and most of those days were sleepless >_<
Thank you for explaining everything it aids to my learning lol even though I have o learn backwards cause I am a visual leaner so I look at the code first and then try to figure out how it works with what you wrote hehe Thanks a lot