Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace ConsoleApp13
- {
- class Program
- {
- static void Main(string[] args)
- {
- double swordDamage = 100f;
- double enemyHealth = 200f;
- double totalDamage = swordDamage * 0.75;
- double healthLeft = enemyHealth - totalDamage;
- Console.WriteLine("Урона полуено: " + totalDamage);
- Console.WriteLine("Жизней осталось с учетом поглощения урона: " + healthLeft);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement