La Casita

  • November 2019
  • PDF

This document was uploaded by user and they confirmed that they have the permission to share it. If you are author or own the copyright of this book, please report to us by using this DMCA report form. Report DMCA


Overview

Download & View La Casita as PDF for free.

More details

  • Words: 158
  • Pages: 1
/* Imprime la tabla de las primera 4 potencias del 1 al 10 */ #include <stdio.h> main() { int n; puts(" numero\t exp2\t exp3\t exp4"); puts("------\t-----\t-----\t-----"); for (n=0; n<=10; ++n) printf("%2d\t%5d\t%5d\t%5d\n",n,n*n,n*n*n,n *n*n*n); }

/* Factorial de un numero */ #include <stdio.h> main() { int i, numero, factorial=1; printf("\nEscriba un numero entero para calcular su factorial: "); scanf("%d",&numero); for (i=numero; i>1; --i) factorial *= i; printf("\n%d! = %d\n",numero,factorial); }

/* Sistema de temperaturas */ #include <stdio.h> main() { int i; float c; for (i=0;i<=300;i+=20) { c=(5./9)*(i-32); printf("%3d grados Farenheit equivalen a %4.4f grados Celsius\n",i,c); } } /* Tabla ASCII */ #include <stdio.h> #define INI 33 #define FIL 15 #define COL 20 main() { int k, kk, i; for (k=1; k255) break; printf(" %c",kk); } printf("\n"); for (i=1; i<=COL; i++) { kk=INI+(k-1)*COL+i; if (kk>255) return(1); if (kk<100) printf(" %d",kk); } } }

Related Documents

La Casita
November 2019 13
Casita
December 2019 32
Casita-abecedario.pdf
December 2019 15
Casita De Sumar.docx
December 2019 22
Limpio Mi Casita
June 2020 8