Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main()
- {
- int n,m,i,j;
- int X;
- printf("Entre com o valor de N:");
- scanf("%d",&n);
- printf("Entre com o valor de M:");
- scanf("%d",&m);
- i = 1;
- j = 1;
- while (i!=n && j!=m)
- {
- i++;
- j++;
- }
- X = (i+j)/(i+j);
- printf("X = %d",X);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement