Bucle While en Lenguaje Perl 🥇 Forum Programming languages ​​and Databases 🗺️

Forum de  Programming languages ​​and Databases Forum de Programming languages ​​and Databases: Lenguajes de programacion, Bases de Datos, Sistemas Operativos y recursos tecnicos avanzados.
Reply to topic Printer Friendly Page
Page 1 of 1 - Topic with 1 messages and 17263 views
Last Post:
Author Message

Image: Aforo
Experto
Experto
Joined:
13-02-2008
Posts: 138

Votes: 0 👍
Reply with quote

Waiting LinksPost subject: Bucle While en Lenguaje Perl

Posted:
En el siguiente ejemplo pondremos como hacer un bucle while en Perl

Quote::
#!/usr/bin/perl

# Inicializo la variable Contador ($cnt)
$cnt = 0;

# Comienzo el bucle While
While ($cnt <= 7) {
# Imprimo la variable y nueva linea: \n
print "$cnt\n";
# Incremento el contador
$cnt ++;
}
Back to top Aforo
Share:
Display posts from previous:
Reply to topic Printer Friendly Page
Page 1 of 1 - Topic with 1 messages and 17263 views - Last modification: 31/03/2008


RSS: Forum  Programming languages ​​and Databases RSS - Last Messages
Jump to:  


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum

Toggle Content Add