Monedas

  • 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 Monedas as PDF for free.

More details

  • Words: 91
  • Pages: 1
#include <stdio.h> #define lim 8 int monedas[lim]= {500, 200, 100, 50, 25, 10, 5, 1}; main() { int num , cantidad, monedas; printf ("introduzca el importe exacto: "); scanf ("%d", &cantidad); printf ("el cambio en monedas exactas es el siguiente : \n"); for (num=0; num main(void) { int potencia,e; potencia=1; e=0; while(potencia<=8) { potencia=potencia*2; e=e+1; //e es el exponente } printf("%d",e); getch (); return 0; }

Related Documents

Monedas
November 2019 18
Monedas Tercero.docx
December 2019 10
Russo Monedas
November 2019 22
Monedas[1]2
June 2020 1
Album Monedas Argentinas.pdf
November 2019 17