I also need some help from someone viewing my whole code, I mean I really need someone to help me out. I am helpless in school and I am trying hard. Please pm me if you are free and would like to offer me some help :) Thank you for reading.
int checkDoubleDigit(int n)
{
int no1, no2;
if (n <= 9) //no semicolon after condition of if-statement
{
no1 = n; //needs to be put between braces and turned around because you can't give n the value of no1
}
else //an else-statement doesn't need any conditins, take else if( condition ) if you need to check sth.
{
no1 = (n / 10);
no2 = no1 + (n % 10);
}
}
I'd say you really need to have a look at the reference and/or get a beginners guide else you'll most likely get huge problems in school.