Computer Science, asked by yashkumar8583, 9 months ago

Iv)Write a program to input any three digit number calculate and print sum of digits.

Sample input : 143

Sample output : 3+4+1=8​

Answers

Answered by mayureshbelamakar190
1
class pro
{
public static void main (int a, int b,int c)
{
int sum;
sum = a+b+c;

System.out.println(“The sum of three numbers is ” + sum );
}
}


Type your value in the dialogue box and you will get your respective output.


Pls mark me as the brainliest

Happy Learning:D :D :D
Similar questions