What do you want to save?
Add Code snippet
New code examples
-
Java 2022-02-02 21:50:47
converting temperature from fahrenheit to celsius
import java.util.Scanner; public class Main { public static void main(String args[]) { Scanner sc = new Scanner(System.in); int far = sc.nextInt(); int cel = (far - 32) * 5/9; System.out.printf("%d Fahrenheit is ... Add solution -
Python 2022-02-02 20:46:09
christmas tree program in python
tree_height = input("Enter the tree height : ") tree_height = int(tree_height) spaces = tree_height-1 hashes = 1 stump_spaces = tree_height-1 while tree_height != 0 : for i in range(spaces): print(' ', end="") for i in... Add solution -
Java 2022-02-01 12:05:03
Java program to check if it is a sparse matrix
import java.util; public class SparseMatrix { public static void main(String[] args) { Scanner sc = new Scanner(System.in); System.out.println("Please enter dimensions of sparse matrix: "); int x = sc.nextInt(); int... Add solution -
Java 2022-02-01 06:50:15
Display even and odd numbers in java using for loop
import java.util.Scanner; public class FindEvenOrOdd { public static void main(String[] args) { int a; Scanner sc = new Scanner(System.in); System.out.println("Please enter a number to check even or odd: "); a = sc.... Add solution -
Python 2022-02-01 04:55:44
how to take matrix input 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
Best helpers
Ranking is empty