SHARE
TWEET

Task 9

AlexRaynor Aug 21st, 2019 63 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6.  
  7. namespace ConsoleApp13
  8. {
  9.     class Program
  10.     {
  11.         static void Main(string[] args)
  12.         {
  13.             double swordDamage = 100f;
  14.             double enemyHealth = 200f;
  15.             double totalDamage = swordDamage * 0.75;
  16.             double healthLeft = enemyHealth - totalDamage;
  17.             Console.WriteLine("Урона полуено: " + totalDamage);
  18.             Console.WriteLine("Жизней осталось с учетом поглощения урона: " + healthLeft);
  19.  
  20.         }
  21.     }
  22. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top