Advertisement
sanyakasarova

Untitled

Jan 15th, 2022
30
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. using System;
  2.  
  3. namespace BiggerNumber
  4. {
  5. class Program
  6. {
  7. static void Main(string[] args)
  8. {
  9. int num1 = int.Parse(Console.ReadLine());
  10. int num2 = int.Parse(Console.ReadLine());
  11.  
  12. // num1 > num2
  13. // num2 > num1
  14. // num1 == num2
  15.  
  16. if (num1 > num2)
  17. {
  18. Console.WriteLine(num1);
  19. }
  20.  
  21. if (num2 > num1)
  22. {
  23. Console.WriteLine(num2);
  24. }
  25.  
  26. }
  27. }
  28. }
  29.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement