C Program to Print the Rightmost Digit of a Given Number
Write a program to print the rightmost ( last ) digit of a given number in C. For example, Input 821309 Output 9 The problem is very simple. The right-most digit of a number is basically the remainder of that number with 10. We can use the ‘%’ operator to get the remainder. Output Now, …
C Program to Print the Rightmost Digit of a Given Number Read More »