ProgIng - Programación en Ingeniería
Loading...
Searching...
No Matches
Ejemplo002.c File Reference
#include <stdio.h>
Include dependency graph for Ejemplo002.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 Ejemplo002.c.

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