Guest User

Untitled

a guest
Nov 23rd, 2017
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.46 KB | None | 0 0
  1. string InputScoreOne;                           // Make a place to hold the string version of the score
  2. int TestScoreOne;                               // Make a place to hold the int version of the score
  3. Console.Write("Exam 1 Score: ");                // Ask for the score
  4. InputScoreOne = Console.ReadLine();             // Get the user's input and store it in the string storage variable
  5. TestScoreOne = int.Parse(InputScoreOne;);       // Convert the string version of the score to an integer for later use
  6. // Do other stuff here
Add Comment
Please, Sign In to add comment