Write a console program with static method inc that takes va

Write a console program with static method inc() that takes value of type int and returns that value increased by one. In main() method do the following:

Ask a user to enter an integer value
Call method inc() and pass user input (integer value) into that method
Print returned result

Solution

Code:

Write a console program with static method inc() that takes value of type int and returns that value increased by one. In main() method do the following: Ask a

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site