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 ConsoleApplication1
- {
- class Program
- {
- static void Main(string[] args)
- {
- int a;
- Console.Write("Enter a=");
- a =Convert.ToInt32( Console.ReadLine());
- if (a / 100 > (a / 10) % 10)
- {
- Console.WriteLine("First more then second");
- }
- else if (a / 100 < (a / 10) % 10)
- {
- Console.WriteLine("Second more then first");
- }
- else if (a / 100 == (a / 10) % 10)
- { Console.WriteLine("Same :)"); }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment