Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace Practice
- {
- class Program
- {
- static void Main(string[] args)
- {
- Console.Write("Введите трехзначное число ");
- int numb = int.Parse(Console.ReadLine());
- int numb1 = numb / 100;
- int numb2 = (numb / 10) % 10;
- if (numb1 > numb2)
- {
- Console.Write("Первое");
- }
- else if (numb2 > numb1)
- {
- Console.Write("Второе");
- }
- else
- Console.Write("Равны");
- Concole.ReadKey();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement