123456789101112131415161718192021222324252627282930313233 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace ClassLibrary2
- {
- public class Class1
- {
- public int sale(int kol, int prise)
- {
- int sale = 0;
- if (kol > 2)
- {
- sale = 5;
- sale = sale + (prise / 500);
- }
- if (kol > 4)
- {
- sale = 10;
- sale = sale + (prise / 500);
- }
- if (kol > 9)
- {
- sale = 15;
- sale = sale + (prise / 500);
- }
-
- return sale;
- }
- }
- }
|