Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- dog:
- pushl %ebp
- movl %esp, %ebp
- movl 12(%ebp), %ecx
- movl $1, %eax
- movl 8(%ebp), %edx
- cmpl %ecx, %edx
- jge .L7
- .L5:
- imull %edx, %eax
- addl $2, %edx
- cmpl %ecx, %edx
- jl .L5
- .L7:
- popl %ebp
- ret
- ez alapján egészítsd ki ezt:
- int dog(int x, int y)
- {
- int i, result;
- result = ________;
- for (i = ________; _____________; ________) {
- result = _________________;
- }
- }
- return result;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement