Advertisement
Guest User

Untitled

a guest
Oct 16th, 2019
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. using System;
  2.  
  3. namespace c_
  4. {
  5. class Program
  6. {
  7. static void Main(string[] args)
  8. {
  9. string input = Console.ReadLine();
  10. int number = Convert.ToInt32(input);
  11.  
  12. int firstEight = number % (16 * 16);
  13. int secondEight = number / (16 * 16);
  14.  
  15. int newNumber = (firstEight * (16 * 16)) + secondEight;
  16.  
  17. Console.WriteLine(newNumber);
  18. }
  19. }
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement