Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main()
- {
- int c,h,o,glucose,water,soda;
- scanf("%d %d %d",&c,&h,&o);
- soda=((2*o)-h)/4;
- water=(h-2 * c + 2 * soda) / 2;
- glucose=(c -soda) / 6;
- printf("%d %d %d",glucose,water,soda);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement