/* Declaramos librerias */
#include
#include
main() /* Iniciamos Programa */
{
clrscr(); /* Limpiamos Pantalla */
/* Declaramos enteros */
int seleccion;
int i;
/* Imprimimos */
printf("Selecciona 1 para imprimir verticalmente, 2 para horizontal:");
/* Escaneamos un valor y lo guardamos en seleccion */
scanf("%d",&seleccion);
if (seleccion==1) /* Si elegimos 1 */
/* i inicia en 1, repetira el ciclo 9 veces y añadira 1 cada vez */
for (i=1; i<=9; i++)
/* Imprimimos */
printf("%d\n",i);
else
for (i=1; i<=9; i++)
printf("%d",i);
getch();
}
A Greek town with natural aquifers on the sea shore Therma Ikaria
-
On the Greek island of Ikaria there isn't just quietness, life span (it is
one of the longest-lived spots on earth), communities, and shrouded sea
shores t...
Hace 4 años
0 comentarios:
Publicar un comentario