What do you want to save?
Add Code snippet
New code examples
-
Javascript 2022-03-20 02:25:33
9.6.4. Beyond for Loops // Input Validation // while loops
const input = require('readline-sync'); let num = input.question('Please enter a positive number:'); num = Number(num); while (num <= 0) { num = input.question('Invalid input. Please enter a positive number:'); num = Number(num); } /*This prog... 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 -
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