write a while loop that reads integers from input and calculates integer finalnum as follows: if the input is divisible by 5, add the input divided by 5 to finalnum. otherwise, subtract the input multiplied by 5 from finalnum. the loop iterates until a negative integer is read. ex: if the input is 15 11 5 -3, then the output is: final number is -31 note: x % 5

Respuesta :

Otras preguntas