Computer Science, asked by RonavRooney, 2 days ago

Write a program in java using do whiile loop to input a number and print the sum of even digits.

Answers

Answered by sdffc
1

import java.io.*;

import Java .util.*;

class sum

{

public static void main() throws IOException

{

Scanner in.= new Scanner(System.in);

int a=0,b=0,c=0,

system.out.println("enter 2numbers");

a= in.nextInt() ( System.in);

b= in.nextInt() (System.in);

c=a+b

System.out.print("sum of two number"+c);

}

}

Mark as brainalist answer

Similar questions