Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- #include <math.h>
- int main()
- {
- float brutto, netto, podatek;
- printf("Podaj pensje brutto ");
- scanf("%f", &brutto);
- if(brutto>3000){
- netto = brutto - (brutto * 0.2);
- printf("Zarobki netto to: %f", netto);
- } else {
- netto = brutto - (brutto * 0.1);
- printf("Zarobki netto to: %f", netto);
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement