EP 241 Computer Programming |
|
Base ConversionWrite a Fortran program to convert a positive integer number in base 10 to the base 2,3,...,10. An example output can be as follows:Input a positive integer number in base 10: 123 Base 2 ---> 1111011 Base 3 ---> 11120 Base 4 ---> 1323 Base 5 ---> 443 Base 6 ---> 323 Base 7 ---> 234 Base 8 ---> 173 Base 9 ---> 146 Base 10 ---> 123 Hint: Following program may help you:
|