Computer Science, asked by bepositivebro7890, 8 months ago

FIRST CORRECT AND GENUINE ANSWER WILL BE MARKED Question 3. Define a class Sum to find the total of all the digits of a given number(123=1+2+3 ). Create a method named mod() to calculate the sum. Also define a main() method to accept the number from the user and pass it to mod() method. Question 4. Write a program using static method named check() to input two numbers a,b as parameters and if a>b ,print the square of a otherwise print square of b.Show the method calling in main method also. Question 5.Write a program to find whether the number entered through keyboard during run time is Even or not. DO ANY TWO

Answers

Answered by anindyaadhikari13
3

Answer:

See this.

Explanation:

I hope this will help you..Please mark this answer as the brainliest.

Attachments:
Similar questions