04.01.2023 Views

Documento sin título (1)

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

mayor de dos números en C

#include<stdio.h>

int main() {

float a;

float b;

printf("Dame tres numeros\n");

scanf("%f",&a);

scanf("%f",&b);

if (a>b) {

printf("el numero mayor es; %f\n",a);

}

if (a<b) {

printf("el numero mayor es; %f\n",b);

}

if (a==b) {

printf("son iguales\n");

}

return 0;

}

mayor de tres números en C

#include<stdio.h>

int main() {

float a;

float b;

float c;

printf("Dame tres numeros\n");

scanf("%f",&a);

scanf("%f",&b);

scanf("%f",&c);

if (a>b) {

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!