Advertisement
didak1t

БонусЗаплата

Jan 3rd, 2025
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.48 KB | Source Code | 0 0
  1. Console.WriteLine("Въведете името на работника:");
  2. string name = Console.ReadLine();
  3. Console.WriteLine("Въведете заплатата на работника:");
  4. double salary = 0;
  5. salary = double.Parse(Console.ReadLine());
  6. Console.WriteLine("Въведете месечния оборот:");
  7. double salesValue = 0;
  8. salesValue = double.Parse(Console.ReadLine());
  9.  
  10. double bonus = (salesValue * 0.15);
  11. Console.WriteLine($"Общо: {(salary + bonus):f2}");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement