Advertisement
Guest User

Untitled

a guest
Oct 16th, 2019
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. // ConsoleApplication10.cpp : This file contains the 'main' function. Program execution begins and ends there.
  2. //
  3.  
  4. #include "pch.h"
  5. #include <iostream>
  6. #include <conio.h>
  7.  
  8. float netto;
  9. float suma = 0;
  10. float vat = 1.23;
  11. int zlotowki;
  12. float grosze;
  13. int a;
  14. int main()
  15. {
  16.  
  17. printf("podaj zarobki");
  18. scanf_s("%f",&netto);
  19. suma = netto*vat;
  20. zlotowki = (int)suma;
  21. grosze = suma-zlotowki;
  22. a = grosze * 100;
  23. printf("%f +%f=%dzl %d gr", netto, vat, zlotowki, a);
  24.  
  25.  
  26. _getch();
  27.  
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement