What do you want to save?
Add Code snippet
New code examples
-
C++ 2022-03-17 03:00:05
nested for loops pyramid c++
//WAP to print triangle pattern... LOGIC int num{}, i{1}; cin >> num; while (i <= num) { for (int space = 1; space <= (num - i); space++) { // space cout << " "; } for (int value = 1; value <= (2 * i -... Add solution -
Java 2022-03-17 00:25:04
java how to print
//print and create new line after System.out.println("text"); System.out.println(String); //You can use any variable type, not just strings, although //they are the most common //Print without creating a new line System.out.print("text&quo... Add solution -
Other 2022-03-16 21:15:14
keep Looping = “a” user Input = “y” while (keep Looping == “y”): print (“Hello world!”) user Input = input(“Would you like me to keep printing hello world? (y/n)”)
keepLooping = “y” userInput = “y” while (keepLooping == “y”): print (“Hello world!”) userInput = input(“Would you like me to keep printing hello world? (y/n)”) Add solution -
Python 2022-03-16 14:25:13
Write a program to take input Dividend and Divisor and print its Quotient and Reminder in python
# Write a program to take input Dividend and Divisor and print its Quotient and Reminder print("This is a simple calculator program which only divides.") did = int(input("Pls enter the value of your divided in numbers:")) dir = int(in... Add solution -
C++ 2022-03-15 06:55:06
segment tree complexity
// C++ program to show segment tree operations like construction, query // and update #include <bits/stdc++.h> using namespace std; // A utility function to get the middle index from corner indexes. int getMid(int s, int e) { return s + (e -s)... Add solution