Welcome, guest! Login / Register - Why register?
Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so just use oauth login instead. :)

Paste

Pasted as C++ by ss ( 13 years ago )
//Funkcja P oblicza wypłatę na podstawie podanych w parametrach: il_godz, stawki.
//Funkcja VAT oblicza kwotę podatku na podstawie podanych w parametrach: progu_pod, pr1, pr2.
//W main wprowadzić potrzebne dane, wywołać funkcje, wyświetlić wypłatę brutto i netto.
#include <stdio.h>
#include <stdlib.h>

int P(int godziny , int na_godzine)
{
    return godziny*na_godzine;
}

int main()
{
    int il_godz,stawka;

    printf("Podaj ile godzin pracowales: ");
    scanf("%d", &il;_godz);

    printf("Po jakiej stawce: ");
    scanf("%d", &stawka;);

    int zarobiles = P(il_godz , stawka);
    printf("Zarobiles:  %d " , zarobiles );
    getchar();
    return 0;
}

 

Revise this Paste

Your Name: Code Language: