Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main(){
- int q, d, p;
- while(scanf("%d", &q) != EOF){
- if(q == 0) break;
- scanf("%d %d", &d, &p);
- int page = (p * q * d)/(p - q);
- printf("%d\n", page);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement