From numbers 1 to 50
if the number is a multiple of three: print “Fizz”
if the number is a multiple of five: print “Buzz”,
if they are multiples of both: print “FizzBuzz”
otherwise print the number
Solution Code (Linkarrow-up-right)
Create a program that calculates the averages of the marks that user inputs.
The user is allowed to input any amount of marks they want as long as it is 0 to 100.
Create a program that takes an unknown amount of names and outputs the longest name.
You will know that the inputs are done when the user has inputted a string of X.
X
Last updated 1 year ago
Sample Input: Kelsey Tyree X Output: Kelsey
Sample Input: Lydia Meredith Garret Erwin Belinda Prince Dena Tracy Vera Regina X Output: Meredith