I am very new to C programming and cannot get a function that will receive one integer as argument, print its last digit and return its 10 Quotient to caller. Can someone please just help me get started
I am very new to C programming and cannot get a function that will receive one integer as argument, print its last digit and return its 10 Quotient to caller. Can someone please just help me get started
A function that will receive one integer as argument...
]Code:int number(int n){ return quotient; }
That will get you started.
Define 10 Quotient. Also the last digit is equal to n MOD 10, which is written as:
Code:n % 10
long time no C; //seige
You miss 100% of the people you don't C;
Code:if (language != LANG_C && language != LANG_CPP) drown(language);