Functions Questions - Sigma 5.0
Functions Questions - Sigma 5.0
Question
Write 2 : named isEven that accepts an int argument. The method should return true if
a method
the argument is even, or false otherwise. Also write a program to test
your method.
Question 5 :
Write a Java method to compute the sum of the digits in an integer.