Yes its all good, but now i have question that are not specified in the tutorial,
what is ionstream, cstdlib and the difference between them.
Also to go along with that,
In this code
Code:
#include <iostream>
using namespace std;
int mult(int x,int y,int z);
int main()
{
int x;
int y;
int z;
cout<<"Please input two numbers to be multiplied:";
cin>>x>>y>>z;
cin.ignore();
cout<<"The product of these two numbers is:" <<mult (x,y,z)<<"\n";
cin.get();
}
int mult(int x, int y,int z)
{
return x*y*z;
}
the int<-- in the begining is what tells the whole program that those intergers will be used?
Is programing all numbers, and input should only be numbers?