/*Programa que calcula el número de dias vividos*/
/* Declaramos las Librerias */
#include
#include
main() /* Iniciamos el programa */
{
char nombre[50]; /* Declaramos char (caracteres) */
float edad; /* Declaramos flotantes (para usar decimales) */
clrscr(); /* Limpiamos la pantalla */
printf("¿Como te llamas?n "); /*Imprimimos en pantalla */
scanf("%s",nombre); /* Escaneamos un valor y lo guardamos en nombre */
printf("¿Cuantos años tienes?n");
scanf("%fl",&edad);
edad=edad*365; /* Declaramos que a vale 365 multiplicado por edad */
gotoxy(5,10); /* Nos situamos en 5,10*/
printf("%s, has vivido %fl dias",nombre,edad);
gotoxy(40,22);
printf("Pulsa cualquier tecla para terminar...");
getch(); /* Usamos getch para no regresar al compilador antes de ver el resultado */
}
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
3 comentarios:
Wow that was odd. I just wrote an extremely long comment but after I clicked submit
my comment didn't appear. Grrrr... well I'm not writing all that over again.
Regardless, just wanted to say fantastic blog!
Here is my webpage ... Airplane Simulator Games
If you are going for most excellent contents like I do, just pay a visit this
web site all the time as it provides quality contents, thanks
Here is my blog post - human pup
I will right away take hold of your rss feed as I can not
to find your e-mail subscription link or newsletter
service. Do you have any? Please permit me realize in order that I could subscribe.
Thanks.
Feel free to surf to my site :: los angeles law firms
Publicar un comentario