#include<stdio.h>
#include<conio.h>
main()
{
int n,max=0,rem;
printf("\n enter a number");
scanf("%d",&n);
while(n!=0)
{
rem=n%10;
n=n/10;
if(rem>max)
{
max=rem:
}}
printf("\n the largest digit is: %d",max);
getch();
}
The largest four digit whole number that is a multiple of 7 is 9,996.Find the largest four digit number : 9999Divide 9999 by 7Round the answer down to the nearest whole numberMultiply the answer from #3 by 7
To find that, simply take your largest 8-digit number: 99999999 And subtract your largest 7-digit number: 9999999 That leaves you with 90000000, or ninety-million.
find the diagonal method of two digit number and three digit number
906609=913*993 I found this using a relatively simple computer program that I wrote.
The smallest two digit number is 00 (a number used as a wire gauge) and the largest is 99, so the difference between the largest and smallest 2-digits numbers is 99 (99 - 00)
It is 99,899,999.
The largest four digit whole number that is a multiple of 7 is 9,996.Find the largest four digit number : 9999Divide 9999 by 7Round the answer down to the nearest whole numberMultiply the answer from #3 by 7
To find that, simply take your largest 8-digit number: 99999999 And subtract your largest 7-digit number: 9999999 That leaves you with 90000000, or ninety-million.
syntax error
Assuming you do not want a number with leading zeros, the difference is 8999.
To find the largest three-digit even number using the digits 3, 4, and 5, you need to arrange these digits in descending order to maximize the number, ensuring that the last digit is even. The largest possible even number is 542
find the diagonal method of two digit number and three digit number
906609=913*993 I found this using a relatively simple computer program that I wrote.
The smallest two digit number is 00 (a number used as a wire gauge) and the largest is 99, so the difference between the largest and smallest 2-digits numbers is 99 (99 - 00)
Write your own prime number program and find out.
There are an infinite number of different decimals. If you have the whole list, then-- The smallest one is the one with the most zeros after the decimal point,or the smallest digit after the zeros if there's a tie.-- The largest one is the one with the most nines after the decimal point,or the largest digit after the nines if there's a tie.If there are less than an infinite number of decimals on your list, then-- The smallest one is the one with the smallest digit after the decimal point,or if it's a tie, the smallest digit in the second place after the decimal point,or of that's a tie, the smallest digit in the third place after the decimal point . . . etc.-- The largest one is the one with the largest digit after the decimal point,or if it's a tie, the largest digit in the second place after the decimal point,or if that's a tie, the largest digit in the third place after the decimal point . . . etc.As soon as you find the largest, find the next largest the same way, byignoring the first largest and finding the largest of the ones that are left.As soon as you find the smallest, find the next smallest the same way, byignoring the first smallest and finding the smallest of the ones that are left.This whole thing feels like trying to explain how to eat a carrot or tie a shoe.
The decimal complement of the number 1 is 8. You can find the complement of any digit by subtracting it from the largest single digit value in the base that you're working in.