Jose Velasquez

Generation

generate functionWed, 29 Mar 2023

escribe un programa que lea cuatro números y determine y determine cual de ellos es el mayor

#include <iostream> int main() { int a,b,c,d; printf("Ingrese el primer numero: "); scanf("%d",&a); printf("Ingrese el segundo numero: "); scanf("%d",&b); printf("Ingrese el tercer numero: "); scanf("%d",&c); printf("Ingrese el cuarto numero: "); scanf("%d",&d); printf("\n"); if(a>b && a>c && a>d) { printf("El mayor es el primer numero"); } else { if(b>a && b>c && b>d) { printf("El mayor es el segundo numero"); } else { if(c>a && c>b && c>d) { printf("El mayor es el tercer

Questions about programming?Chat with your personal AI assistant