Write a program that takes in two integers and outputs the larger value. If the two integers
Fantastic news! We've Found the answer you've been seeking!
Question:
Write a program that takes in two integers and outputs the larger value. If the two integers are the same, output the integers' value.
Ex: If the input is:
4 2
the output is:
4
2) Remember you can use the len method to compare the lengths of strings.
Write a program that takes in two strings and outputs the longest string. If they are the same length then output the second string.
Ex. If the input is:
almond pistachio
the output is:
pistachio
Related Book For
Java An Introduction To Problem Solving And Programming
ISBN: 9780134462035
8th Edition
Authors: Walter Savitch
Posted Date: