Skip to content

Latest commit

 

History

History

Problem_01

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

Exercise 1

Write a program that take two integers from command line and prints sum of two number and result of subtracting first from the second.

Note: Use Integer.parseInt(args[0]) to convert args[0] from String to int.

Example 1:

% java YourProg 20 10

Output: 30, 10

Example 2:

% java YourProg 5 10

Output: 15, -5