What do you want to save?
Add Code snippet
New code examples
-
C 2022-03-27 18:00:02
C example of if else
if (<condition>) { <code> } else if (<condition>) { <code> } else { <code> } /* example */ int money = 50; if (money < 15) { go_home(); } else if (money >= 600) { buy_all(); } else { buy_tickets(money / 15); } /... Add solution -
Other 2022-03-27 17:30:32
merge sort algo
// @see https://www.youtube.com/watch?v=es2T6KY45cA&vl=en // @see https://www.cs.usfca.edu/~galles/visualization/ComparisonSort.html function merge(list, start, midpoint, end) { const left = list.slice(start, midpoint); const right = list.sli... Add solution -
C# 2022-03-27 12:05:29
c# program for cash withdraw and cash deposit using oop
/* * C# Program to Display the ATM Transaction */ using System; class program { public static void Main() { int amount = 1000, deposit, withdraw; int choice, pin = 0, x = 0; Console.WriteLine("Enter Your Pin N... Add solution -
Javascript 2022-03-22 13:20:11
creating room in ws node js
const rooms = {}; wss.on("connection", socket => { const uuid = ...; // create here a uuid for this connection const leave = room => { // not present: do nothing if(! rooms[room][uuid]) return; // if the one exiting is t... 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
Best helpers
Gabi Purcaru
+5
L. Samson
+5
Yoyo
+5
Skry
+5
Colocvial
+5
Sarah witte
+5
Leosar
+5
Tobiak777
+5
Tjd
+5