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 ThirdDigit
- {
- class ThirdDigit
- {
- static void Main()
- {
- int num = int.Parse(Console.ReadLine());
- int thirdDigit = num / 100 % 10;
- if (thirdDigit == 7)
- {
- Console.WriteLine("True");
- }
- else
- {
- Console.WriteLine("False");
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment