What do you want to save?
Add Code snippet
New code examples
-
Shell/Bash 2022-03-24 23:10:26
linux basic commads
ls - list everything in current dirrectory cd directoryname - change directory to given directory cp directorynameofcopied directorynamewheretocopy - copes a file or folder mv directoryoffiletobemoved directrynameofdestinationtomove - moves a file pwd - p... Add solution -
C++ 2022-03-22 13:25:16
arrow operator c++
/* the arrow operator is used for accessing members (fields or methods) of a class or struct it dereferences the type, and then performs an element selection (dot) operation */ #include <iostream> using std::cout; class Entity { public: con... Add solution -
Python 2022-03-21 19:20:16
solve a second degree equation in python
import math print ("The second degree equation comes in the form") print("ax²+bx+c") a =int (input("Enter a: ")) b =int (input("Enter b: ")) c =int (input("Enter c: ")) d = (b**2)-(4*a*c) if d <... Add solution -
Java 2022-03-19 12:55:14
how to have multiple conditions in an if statement java
//Program to check if the answer to the given question is correct //with multiple conditions in a single else if statement import java.util.Scanner; public class MultipleChoiceQuestion { public static void main(String args[]) { String question... Add solution -
Python 2022-03-18 05:30:14
How can I get terminal output in python
>>> import subprocess >>> cmd = [ 'echo', 'arg1', 'arg2' ] >>> output = subprocess.Popen( cmd, stdout=subprocess.PIPE ).communicate()[0] >>> print output arg1 arg2 >>> There is a bug in using of the subproc... Add solution
Best helpers
John Weisz
+5
Jean Luis
+5
Terry3497
+5
Aown Ali
+5
Ishan Yadav
+5
SunnyHills
+5
Rocky DeHart
+5
Numeri
+5
Martinako
+5
Eve noonan
+5
Cynthia
+5