What do you want to save?
Add Code snippet
New code examples
-
TypeScript 2022-02-03 03:37:18
changing the elements of an array using a for loop java
int[] anIntArray = new int[6]; /* This is for when you want to increment the contents of an array using a for loop. */ for (int i = 0; i < anIntArray.length; i++) { anIntArray[i]++; } //================================... 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 -
Python 2022-01-28 07:42:16
iterate over list of strings python
# Iterate through a string using a for loop name="Nagendra" for letter in name: print(letter) # Iterate through a string using a for loop index = 0 while index<len(name): print(index) index += 1 #Iterate through a list of strings us... Add solution -
Javascript 2022-01-27 23:45:36
foreach over array javascript
/** 1. Use forEach and related */ var a = ["a", "b", "c"]; a.forEach(function(entry) { console.log(entry); }); /** 2. Use a simple for loop */ var index; var a = ["a", "b", "c"]; for (index ... Add solution -
Java 2022-01-26 18:12:05
how to break two loop in java
import java.io.IOException; /** * How to break from nested loop in Java. You can use labeled * statement with break statement to break from nested loop. * * @author WINDOWS 8 */ public class BreakingFromNestedLoop{ public static void main(Str... Add solution -
Other 2022-01-24 05:20:37
PntIDNumbers
#include <iostream> #include <fstream> #include <cstdlib> #include <string> #include <sstream> #define MAX 200 using namespace std; // Function receive address of the first element of an array // Reads file contents and store... Add solution
Best helpers
Derek Kaplan
+5
Sqlsourcerer
+5
Ken N.
+5
Rene Duchamp
+5
Susette87
+5
Tanveer Ali
+5
Simon LANG
+5
Andrew Besag
+5
Littleprince
+5
Bridget W.
+5
Haidy Kassem
+5
Ferhat Turan
+5
Jwp36
+5