What do you want to save?
Add Code snippet
New code examples
-
Java 2022-03-11 17:50:03
armstrong numbers problem java
// Java program to print all armstrong numbers between given range import java.util.Scanner; public class ArmstrongNumbersGivenRange { public static void main(String[] args) { int number, startNumber, endNumber, a, rem, n, count = 0; S... Add solution -
Java 2022-03-11 11:35:19
Java program to print prime numbers from 2 to n
// Java program to print prime numbers from 2 to n import java.util.Scanner; public class PrimeNumberFrom2Ton { public static void main(String[] args) { int loop, max; System.out.print("Please enter highest (maximum) number: "... Add solution -
Other 2022-03-11 10:35:02
take input from user in java using scanner
import java.util.*; class UserInputDemo { public static void main(String[] args) { Scanner sc= new Scanner(System.in); //... Add solution -
Python 2022-03-06 04:25:04
how to get matrix element in the form of matrix in python
# A basic code for matrix input from user R = int(input("Enter the number of rows:")) C = int(input("Enter the number of columns:")) # Initialize matrix matrix = [] print("Enter the entries rowwise:") # For use... Add solution -
Python 2022-03-02 19:20:13
python how to see if file is directory
""" Use os.path.isfile(some_string) to check if some_string is a file Use os.path.isdir(some_string) to check if some_string is a directory """ import os path = "C:/some directory/" file = path + "file.txt&quo... Add solution
Best helpers
Ranking is empty