Category "while-loop"

printing the largest number from a while loop, when 10 numbers are inputted from the keyboard

Every time my output prints out the last number given through the Scanner as the largest number. This program needs to be modified in a way, that it scans throu

Converting text file to all uppercase letters

I have an assignment for class and I have to make a program that takes an existing file and converts all the letters to uppercase. Below is part of the code (sp

Number of trailing zeroes

I've written a function trailing_zeroes(int n) that returns the number of the trailing zeroes in the binary representation of a number. Example: 4 in binary is