Back to Browse

Sum of even & odd || easy concept || java

884 views
Jun 27, 2023
7:36

LIFE CODING WITH JAVA Sum of even & odd Send Feedback Write a program to input an integer N and print the sum of all its even digits and sum of all its odd digits separately. Digits mean numbers, not the places! That is, if the given integer is "13245", even digits are 2 & 4 and odd digits are 1, 3 & 5. Sample Input 1: 1234 Sample Output 1: 6 4 Sample Input 2: 552245 Sample Output 2: 8 15 I try to solve very easy concept So please watch this video . All java code with easy trick. By "LIFE CODING WITH JAVA". all program free no any cost So please like ,subscribe, share and comment. If you any doubt related to any video then comment me. As soon as I will help you . my contact number: 6206472735.. #LIFE CODING WITH JAVA @java62 #java #coding #with java #for loops in java #patterns in java #while loops in java #arrays in java #dynamic in java #linked list in java #queue in java #stack in java #binary search in java #merge search in java #dsa in java #recursion in java #arraylist in java #function in java #all oops concept in java #queue #explain all concept related to java #history of java #only java course #full stack web development #coding ninjas all questions

Download

0 formats

No download links available.

Sum of even & odd || easy concept || java | NatokHD