Advertisement
callumbinner22

Scheme 3 Task 3 (partly completed)

Feb 16th, 2017
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.38 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 ConsoleApplication56
  8. {
  9.     class Program
  10.     {
  11.         static void Main(string[] args)
  12.         {
  13.             int strengthdif;
  14.             int strengthmod;
  15.             int skilldif;
  16.             int skillmod;
  17.  
  18.             Console.WriteLine("Please enter character 1's skill value");
  19.             int c1skill = Convert.ToInt32(Console.ReadLine());
  20.             Console.WriteLine("Please enter character 1's Strengh value");
  21.             int c1strength = Convert.ToInt32(Console.ReadLine());
  22.             Console.WriteLine("Please enter character 2's skill value");
  23.             int c2skill = Convert.ToInt32(Console.ReadLine());
  24.             Console.WriteLine("Please enter character 2's Strengh value");
  25.             int c2strength = Convert.ToInt32(Console.ReadLine());
  26.             Console.WriteLine("Character 1 has skill rating " + c1skill + " and strengh rating " + c1strength);
  27.             Console.WriteLine("Character 2 has skill rating " + c2skill + " and strengh rating " + c2strength);
  28.  
  29.             strengthdif = (c1strength - c2strength);
  30.             strengthmod = (strengthdif / 5);
  31.  
  32.             skilldif = (c1skill - c2skill);
  33.             skillmod = (skilldif / 5);
  34.  
  35.             Console.WriteLine("Player 1 role dice");
  36.  
  37.  
  38.         }
  39.     }
  40. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement