Advertisement
Maszi

Untitled

Oct 13th, 2019
151
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.44 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. #include <math.h>
  4.  
  5. int main()
  6. {
  7.     float brutto, netto, podatek;
  8.  
  9.     printf("Podaj pensje brutto ");
  10.     scanf("%f", &brutto);
  11.  
  12.     if(brutto>3000){
  13.         netto = brutto - (brutto * 0.2);
  14.         printf("Zarobki netto to: %f", netto);
  15.     } else {
  16.         netto = brutto - (brutto * 0.1);
  17.         printf("Zarobki netto to: %f", netto);
  18.     }
  19.  
  20.     return 0;
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement