plzz solve this java program question in attachment using only if ..neither if else or laddered if else nothing just...if
plzzz solve it as fast as u all can ...
plzzzzzzz
40 points for the questionnn
Share
plzz solve this java program question in attachment using only if ..neither if else or laddered if else nothing just...if
plzzz solve it as fast as u all can ...
plzzzzzzz
40 points for the questionnn
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Answer:
what is the answer for this question friend
Java Program to Compute the Sum of Digits in a given Integer
public class Digit_Sum.
int m, n, sum = 0;
Scanner s = new Scanner(System.
System. out. print("Enter the number:");
m = s. nextInt();
while(m > 0)
n = m % 10;
sum = sum + n;