Can you help straighten out this mess. Do I even need m,n? I am working on a program for school and I just don't get it. The problem is if someone entered the # 2 this would give the #,s between 10 and 99...if 3 was entered 100 and 999 Thanks for any help.
This is the part I have at the top before the main function, I am pretty sure it's not supposed to be separated but I am confused.
int pow10(int m);
int pow10(int n);
how do I call this in my main function or when you use predefined functions do you not write a function at the end of the main function?
{
pow10(int m);
maxNum = m;
pow10(int n);
minNum = n;
}
This is what I have after the main function int pow10(int m)
{
m=pow10((maxDigits)-1);
return int m;
}
int pow10(int n)
{
n=pow10(maxDigits-1);
return int n;
}
2007-02-21
03:19:24
·
4 answers
·
asked by
jnjn
2
in
Computers & Internet
➔ Programming & Design