Exercise 2 Week 2 - Java Tutorial Sum Double IF Statements

Опубликовано: 05 Март 2025
на канале: Red Stag Digital
1,566
6

For more: http://redstagdigital.com/

Next Video:    • Exercise 3 Week 2 - Java Tutorial Cat...  
Description of Problem:
Given two int values, print their sum if the two values are different.
if the two int values are the same, then print double their sum.

Objective:
Write a Java program called SumDouble that prompts the user to enter
two int values. Print out their sum if the two values are different,
if the two values are the same, then print double their sum.

Website: http://redstagdigital.com/