Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # include <stdio.h>
- int loop (int n, int x, int y, int cont, int reino)
- {
- int moedas;
- char movimento;
- getchar();
- scanf("%c", &movimento);
- if (num == cont)
- {
- }
- else
- {
- if (movimento == 'D')
- {
- reino = -1;
- }
- else if (movimento = 'C')
- {
- reino = 1;
- }
- }
- }
- int main()
- {
- int n, x, y, i;
- scanf("%d", &n);
- loop (n, 0, 0, 0, 0); //inicio em (0,0) e no reino 0;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement