What do you want to save?
Add Code snippet
New code examples
-
TypeScript 2022-01-23 01:10:24
Java program to find the sum of all the digits in the inputted number
long number, sum; Scanner sc = new Scanner(System.in); System.out.println("Enter any DIGIT number: "); number = sc.nextLong(); sc.close(); // For Logic for adding all digits in the given number for (sum = 0; number != 0; number /= 10) { sum += ... Add solution -
Java 2021-11-21 16:51:20
Reverse an array in java using for loop
// Reverse an array in java using for loop public class ReverseArrayUsingForLoop { public static void main(String[] args) { int[] arrNumbers = new int[]{2, 4, 6, 8, 10}; System.out.println("Given array: "); for(int ... Add solution -
-
-
TypeScript 2021-11-04 05:15:12
JAVA Program than read an integer and calculate the sum of its digits and write the number of each digit of the sum in English
long number, sum; Scanner sc = new Scanner(System.in); System.out.println("Enter any DIGIT number: "); number = sc.nextLong(); sc.close(); // For Logic for adding all digits in the given number for (sum = 0; number != 0; number /= 10) { sum += ... Add solution -
Javascript 2021-10-27 09:40:11
push nested loop async await mongodb
//Import ObjectId method ObjectId = require('mongodb').ObjectID; //Get a promise from DB const getCollectionItem = (Collection, id) => { return Collection.find({_id:ObjectId(id)}); } //Iterate over a list of items to store them in a final list co... Add solution
Best helpers
Blank
+5
Grin
+5
Hwsolutions
+5
Charlemagne
+5
SYJ
+5
A. Pelicker
+5
KMC
+5
Jonjie
+5
37Bons
+5
Highlightman
+5
Paul Knight
+5
Karl
+5
WYSIWYG
+5
Required
+5
Saylestyler
+5
Deverejones
+5
Zkanoca
+5
Frank Jaeger
+5