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
3int 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}
#define N
#define M
int main(void)
Definition Ejemplo_035.c:15