Ruby
xxxxxxxxxx
print "Enter number: ";
num = gets.chomp.to_i;
case num
when 1
puts "Input is 1";
when 2
puts "Input is 2";
when 3
puts "Input is 3";
when 4
puts "Input is 4";
when 5
puts "Input is 5";
else
puts "Unknown number";
end
Enter number: 5 Input is 5
Linux - Comment installer anc-api-tools
Linux - Comment installer curvedns
Python - Vérifier si un nombre est positif, négatif ou 0
Linux - Comment installer zenmap
C - Compter le nombre de chiffres dans un entier
C++ - Vérifier l'année bissextile
C++ - Vérifier si un nombre est premier ou non
JavaScript - Vérifier si une chaîne commence et se termine par certains caractères
C - Trouver le plus grand nombre à l'aide de l'allocation de mémoire dynamique
Linux - Comment installer xbitmaps
Linux - Comment installer zstd
Kotlin - Inverser un nombre
Kotlin - Arrondir un nombre à n décimales
Java - Inverser un nombre
Python - Écriture de fichiers Excel (XLSX)
C++ - Trouver le quotient et le reste
Java - Créer une pyramide et un motif
Linux - Comment installer zfs-test
We have been online since 2021 and 1 millions of people around the globe have visited our website since then
More visitors every month