Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ConsoleApplication10.cpp : This file contains the 'main' function. Program execution begins and ends there.
- //
- #include "pch.h"
- #include <iostream>
- #include <conio.h>
- float netto;
- float suma = 0;
- float vat = 1.23;
- int zlotowki;
- float grosze;
- int a;
- int main()
- {
- printf("podaj zarobki");
- scanf_s("%f",&netto);
- suma = netto*vat;
- zlotowki = (int)suma;
- grosze = suma-zlotowki;
- a = grosze * 100;
- printf("%f +%f=%dzl %d gr", netto, vat, zlotowki, a);
- _getch();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement