answersLogoWhite

0

#include
void main()
{
long int n;
clrscr();
printf("Enter a number:");
scanf("%ld",&n);
printf("%d",n%10);
getch();
}

User Avatar

Wiki User

15y ago

What else can I help you with?

Continue Learning about Engineering
Related Questions

What is the units digit of 13336?

The units digit of a whole number is always the rightmost digit.


What two two-digit numbers are each equal to their rightmost digit squared?

25 and 36 are each equal to their rightmost digit squared. 25 = 5 X 5 36 = 6 X 6


How many significant figures does 13.60 have?

4 Every digit between the leftmost non-zero digit and EITHER the right most non-zero digit OR the rightmost digit after a decimal.


How many multiple of 10 are there in 3 digit numbers?

It is the integer that you get by dividing the three digit number by 10. Alternatively, the number of the multiples of ten is that you get when you truncate the rightmost number. for example assume a three digit number 517 Divide 517 by ten, you get 51.7 The integer number is 51 Alternatively, if you trnucate the rightmost number (7) you get 51 also then the answer the three digit number 517 has 51 multiples of 10.


Does 36.06 and 36.060 have the same value?

Yes - any further zeroes to the right of the rightmost digit after a decimal point has no effect on the value of the number.


What number comes before 1010?

The number that comes before 1010 is 1009. In the decimal number system, each digit represents a power of 10, with the rightmost digit representing 10^0 (1), the next digit representing 10^1 (10), and so on. Therefore, to find the number before 1010, you simply subtract 1 from the last digit, resulting in 1009.


Write a program to reverse four digits no using for loops?

int getReverse(int n) { int reversedN = 0; // Divide n by 10 on each pass to remove the rightmost digit for (; n > 0; n /= 10) { // Multiple reversedN to shift all digits to the left // (to make room for the next digit) reversedN *= 10; // Add on (n%10), which is the rightmost digit of n reversedN += (n % 10); } return reversedN; }


What is a Right Most digit mean?

What does this mean? The rightmost digit of {eq}n^j{/eq} is the remainder when {eq}n^j{/eq} is divided by {eq}10{/eq}. yep totaly nor random :))


What is the rightmost column called?

Rightmost column is called the ones.


Write a c program the extracts and prints the rightmost digit of the integral portion of the float?

#include<stdio.h> int main (void) { float x,y; int z,w; printf("enter a number:"); scanf("%6.2f",&x); y=x/10.0; z=x-y; w=z%10; printf("the rightmost digit is %d\n",w); return 0; }//main


What is the value of the digit 3 in 432?

In the number 432, the digit 3 holds a place value of 30, as it is in the tens place. This means that the value of the digit 3 is 30. Each digit in a number represents a different place value based on its position within the number, with the rightmost digit representing ones, the next digit to the left representing tens, and so on.


How do you round 42.3659472156234 to the nearest ten thousandths?

You discard all digits after the first four digits, in this case. Then, as is usual in rounding, you look at the first digit discarded, and if it's 5 or more, you add one to the rightmost digit you keep.