Advertisement
slemiba

L01-05-Nettó Bruttó

Sep 6th, 2022 (edited)
631
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.63 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6.  
  7. namespace ConsoleApp7
  8. {
  9.     class Program
  10.     {
  11.         static void Main(string[] args)
  12.         {
  13.             Console.WriteLine("--- 5. feladat ---");
  14.             Console.WriteLine("Kérek egy Nettó árat:");
  15.             double Net = double.Parse(Console.ReadLine());
  16.             Console.WriteLine("Kérem az adó (pl.: ÁFA) mértékét! ");
  17.             double ado = double.Parse(Console.ReadLine());
  18.             Console.WriteLine("A termék Bruttó ára:"+ (Net*(1+ado/100)));
  19.  
  20.  
  21.  
  22.         }
  23.     }
  24. }
  25.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement