Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- int main()
- {
- int a ,b , c, x;
- while(1){
- scanf("%d",&a);
- if(a == 0){
- break;
- }
- else{
- scanf("%d %d", &b, &c);
- x = (a*b*c)/abs(a-c);
- if(x == 1){
- printf("%d pagina\n",x);
- }
- else{
- printf("%d paginas\n", x);
- }
- }
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement