What do you want to save?
Add Code snippet
New code examples
-
Java 2021-11-08 21:05:14
Reverse a string in java without using reverse function
// Reverse a string in java without using reverse function import java.util.Scanner; public class ReverseWithoutFunction { public static void main(String[] args) { Scanner sc = new Scanner(System.in); System.out.println("Please en... Add solution -
Java 2021-11-06 13:13:12
ava program to add two numbers taking input from user
import java.util.Scanner;public class Main{public static void main(String[] args){int a, b, sum;Scanner sc = new Scanner(System.in);System.out.println("Enter First Number: ");a = sc.nextInt();System.out.println("Enter Second Number: ")... 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 -
Java 2021-10-27 14:52:07
Java program to find maximum and minimum number without using array
// Java program to find maximum and minimum number without using array import java.util.Scanner; public class MaximumMinimumWithoutArray { public static void main(String[] args) { Scanner sc = new Scanner(System.in); System.out.println(&... Add solution -
Java 2021-10-24 16:34:08
Java program to calculate area of a circle
import java.util.Scanner; public class CalculateAreaOfCircle { public static void main(String[] args) { double radius; double pi = 3.1415, area; Scanner sc = new Scanner(System.in); System.out.println("Please enter radiu... Add solution -
Java 2021-10-14 08:12:19
Java program to calculate compound interest
// Java program to find simple interest import java.util.Scanner; public class SimpleInterestJavaProgram { public static void main(String[] args) { float principal, rate, time; Scanner sc = new Scanner(System.in); System.out.print(... Add solution
Best helpers
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5