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 Calcula El Max Y Min De Una Serie De Numeros En C as PDF for free.
#include <stdio.h> #include int main () { int n,max,min,num; printf("introduce un numero :\n"); scanf ("%d",&num); max=num; min=num; for (n=1;n<10;n++) { printf("Introduce otro numero :\n"); scanf("%d",&num); if (num>max) max=num; else; if (num<min) min=num; else; }; printf("El mayor es %d.\n",max); printf("El menor es %d.\n",min); getch(); }