ProgIng - Programación en Ingeniería
Loading...
Searching...
No Matches
002_Pokemon.c
Go to the documentation of this file.
1
#include <stdio.h>
2
3
int
main
(
int
argc,
char
*argv[])
4
{
5
int
N
,
M
, X, Y, S;
6
printf(
"Ingrese los valores: "
);
7
scanf(
"%d %d %d %d"
, &
N
, &
M
, &X, &Y);
8
S = (
N
*Y+
M
)/(X+Y);
9
printf(
"Resultado = %d\n"
,
N
*X<
M
?
N
:S);
10
return
0;
11
}
N
#define N
Definition
012_aleatorio.c:5
M
#define M
Definition
018_Casilleros.c:7
main
int main(void)
Definition
Ejemplo_035.c:15
src
20251
002_Pokemon.c
Generated by
1.16.1