I made a times table program, could i have some pointers?
Here is the program:
_________________________________
#include<iostream.h>
#include<stdlib.h>
int enter()
{
cout<<"Enter a number: ";
return 0;
}
int main()
{
int yana;
do
{
int iX, iY, iG, iA, iB, iC, iH, iZ, iJ, iK, iN, iM, iL;
system("cls");
yana=0;
enter();
cin>> iX;
enter();
cin>> iY;
enter();
cin>> iG;
enter();
cin>> iB;
enter();
cin>> iJ;
enter();
cin>> iZ;
enter();
cin>> iC;
enter();
cin>> iH;
enter();
cin>> iK;
enter();
cin>> iN;
enter();
cin>> iM;
enter();
cin>> iL;
iA=iY+iX+iG+iB+iC+iH+iZ+iJ+iK+iN+iM+iL;
cout<< "\nThe sum of your numbers are: "<<iA<<endl;
cout<<"do you want to continue? type 1 to do again\n";
cin>>yana;
}while(yana==1);
cout<<"This program has been brought to you by: Twarrior.";
cout<<"For some updates go and email me at [email protected]";
system("pause");
return 0;
}
_________________________________
I just need a few pointers, so help a the newguy out!
P.S.: I attached the c++ program so you can look at it off lne.