Write a program that by command of button click read from a file a big integer number.
The program should display this number and the sum of all the single digits of the inputted number.
For example, if the program reads the integer number 2514, the program should display 2514 in the one text-box and 12 in another text-box, which is the sum: 2+5+1+4 = 12.
The program should also display the highest and lowest single digits of the integer number in the two more text boxes.
For the example number 2514, these single digits are 5 and 1.
The program should display this number and the sum of all the single digits of the inputted number.
For example, if the program reads the integer number 2514, the program should display 2514 in the one text-box and 12 in another text-box, which is the sum: 2+5+1+4 = 12.
The program should also display the highest and lowest single digits of the integer number in the two more text boxes.
For the example number 2514, these single digits are 5 and 1.
No comments:
Post a Comment