ProgIng - Programación en Ingeniería
Loading...
Searching...
No Matches
Ejemplo002.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, T;
6 scanf("%d %d %d %d", &N, &M, &X, &Y);
7 T = (Y*N+M)/(X+Y);
8 T = (T>N?N:T);
9 printf("%d\n", T);
10 return 0;
11}
#define N
#define M
int main(void)
Definition Ejemplo_035.c:15