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 Compara Tres Numeros En C as PDF for free.
#include <stdio.h> #include int main() { int a,b,c; printf("Introduce un numero\n"); scanf("%d", &a); printf("Introduce un numero\n"); scanf("%d", &b); printf("Introduce un numero\n"); scanf("%d", &c); if (a>b && a>c) { printf("%d es el mayor", a); } else { if (b>a && b>c) { printf("%d es el mayor", b); } else { if (c>a && c>b) { printf("%d es el mayor", c); } else { } } getch(); } }