ProgIng - Programación en Ingeniería
Loading...
Searching...
No Matches
002_Pokemon.c File Reference
#include <stdio.h>
Include dependency graph for 002_Pokemon.c:

Go to the source code of this file.

Functions

int main (int argc, char *argv[])

Function Documentation

◆ main()

int main ( int argc,
char * argv[] )

Definition at line 3 of file 002_Pokemon.c.

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