Created
January 5, 2017 01:40
-
-
Save dzsquared/8a60bd2583dec52447e0588027abe7b1 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| using System.Collections.Generic; | |
| using System.IO; | |
| using System.Linq; | |
| class Solution { | |
| static void Main(String[] args) { | |
| string S = Console.ReadLine(); | |
| int thenumber; | |
| try { | |
| thenumber = Int32.Parse(S); | |
| Console.WriteLine(thenumber); | |
| } catch (FormatException) { | |
| Console.WriteLine("Bad String"); | |
| } | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment