aqui no se hacen tareas!
aunque esta guapo el ejercicio me lo apunto para hacerlo cuando acabe examenes.. xD
aunque esta guapo el ejercicio me lo apunto para hacerlo cuando acabe examenes.. xD
Esta sección te permite ver todos los mensajes escritos por este usuario. Ten en cuenta que sólo puedes ver los mensajes escritos en zonas a las que tienes acceso en este momento.
Mostrar Mensajes Menú#include <stdio.h>
#define TAM 10
int main ()
{
int tabla[TAM]= {1, 1};
int i, max;
scanf ("%d", &max);
for (i = 2; i < max && i < TAM; i++)
tabla[i] = tabla[i-1] + tabla[i-2];
for (i = 0; i < max && i < TAM; i++)
printf ("%d ", tabla[i]);
printf("\n");
return 0;
}
#include <stdio.h>
#include <stdlib.h>
int main ()
{
int *tabla;
int i, max;
scanf ("%d", &max);
tabla=(int*)malloc(max*sizeof(int));
*tabla=1;
*(tabla+1)=1;
for (i = 2; i < max; i++)
*(tabla+i) = *(tabla+i-1) + *(tabla+i-2);
for (i = 0; i < max; i++)
printf ("%d ", *(tabla+i));
printf("\n");
free(tabla);
return 0;
}
CitarFijate que fue solo un minuto creo o mucho menos, son problemas del hosting pero es una vez cada mucho y todavia unos segundos solamente, nada de que preocuparse creo yo
CitarConnection Problems
Sorry, SMF was unable to connect to the database. This may be caused by the server being busy. Please try again later.
Citarfink list firefox (para buscar paquetes con nombre firefox)
fink install firefox
fink update-all
...