Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /******************************************************************************
- Online C Compiler.
- Code, Compile, Run and Debug C program online.
- Write your code in this editor and press "Run" button to compile and execute it.
- *******************************************************************************/
- #include <stdio.h>
- int main()
- {
- double v, debit;
- int hours, numPipes;
- printf("Vuvedete obem, debit, chasove i broi trubi: ");
- scanf("%lf %lf %d %d", &v, &debit, &hours, &numPipes);
- v -= debit * hours * numPipes;
- if (v < 0) {
- printf("Baseinyt e prelql.");
- } else if (v > 0) {
- printf("Baseinyt oshte ne e prelql, ostavat oshte %.2lf litra.", v);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement