#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();
}
Chat with our AI personalities
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)