/* 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();
}
One of the most astonishing old town on the planet Old City of Jerusalem
-
Jerusalem is perhaps the most established city on the planet . By measuring
its history and its multifaceted nature, on the off chance that we think
about ...
Hace 5 años
0 comentarios:
Publicar un comentario