Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //***************************************************************************************** glupie ******************
- void wczyt_vat(float* tablica, int ile)
- {
- int i = 0;
- float stawka;
- while (i < ile)
- {
- int czy_wykonac = 1;
- while (czy_wykonac == 1)
- {
- printf("Podaj poprawna stawke vat dla produktu o indeksie %d: ", i);
- scanf_s("%f", &stawka);
- if (stawka == 0.0 || stawka == 5.0 || stawka == 8.0 || stawka == 23.0)
- {
- *(tablica++) = stawka;
- czy_wykonac = 0;
- }
- }
- i++;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement