The tricky part is getting the individual digits. There are basically two ways to do this: 1) Convert the number to a string, and use string manipulation to get the individual digits. 2) Repeatedly divide the number by 10. The digit is the remainder (use the "%" operator).
To actually get the highest digit, initially assume that the highest digit is zero (store this to a variable, called "maxDigit" or something similar). If you find a higher digit, replace maxDigit by that.
x -=y;
Use an enum if you are using a c style language. Or a map data structure. Assign each integer an English value and then match it to what the user inputs.
Use the MOD operator to get the remainder of integer division.
Reference:cprogramming-bd.com/c_page1.aspx# array programming
write a program that reads in the size of the side of square and then pints a hollow square of that size out of asterisks and blanks?
see the program
x -=y;
1 hour ago my c program said no, but now I know 5 actually is an integer!
Any program whose output is: " Don't waste your time! There is no highest number. Never was, never will be."
afi 31-101
Use %o
Not counting sports programming, for the 2014-2015 fall season, Empire was the highest ranked program for the 18/49 demo & The Big Bang Theory was the highest viewed program.
Use an enum if you are using a c style language. Or a map data structure. Assign each integer an English value and then match it to what the user inputs.
Reference:cprogramming-bd.com/c_page2.aspx# reverse number
The person or program that solves the equation does.
Use the MOD operator to get the remainder of integer division.
A VPP Star is the highest level of recognition in the OSHA Voluntary Protection Program