#include<stdio.h>
#include<conio.h>
void main()
{
int n,r,rev=0;
clrscr();
printf("Enter a four digit number:");
scanf("%d",&n);
while(n>0)
{
r=n%10;
rev=rev*10+r;
n=n/10;
}
printf("Reversed format of the number is %d",rev);
printf("Now the digits are splitted\n");
while(rev>0)
{
r=rev%10;
printf("%d\t",r);
rev=rev/10;
}
getch();
}
Assuming you've entered a multi-digit number whole number (an integer), then take the modus (%) of the number and 10. E.g., if the number input was 1234, then 1234 % 10 is 4. Thus the final digit is 4. Note that modus 10 is the same as dividing the number by 10 and taking the remainder.
9999
9999 9999
next number to this series is 554325. its look like this 15--add 1 to first digit and we get 2 and repeat two times and leave other digit.225 225-- its first digit is 2 and add 1 to it get 3 and write two time and write remaining digit as 3325. 3325-- its first digit is 3 and add 1 to it get 4 and write two time and write remaining digit as 44325. 44325-- its first digit is 4 and add 1 to it get 3 and write two time and write remaining digit as 554325.
Write the place and the value of the underlined digit. 95463 The 4 is in the hundreds place and has a value of 400.
123456.74
how do you write 4 digit numbers with a 0 in ten and hundred place then use the same number to tell which number is larger
4 million
9542
Write a zero Write a decimal point Write a zero Write a zero Write a zero Write any digit less than 5 (if you wrote a zero you will have to write another digit or as many zeros as you want, and then a digit that is not a zero).
the greatest is 9499 and lowest 1400
18