Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- class MainClass
- {
- public static void Main(string[] args)
- {
- string a = Console.ReadLine();
- int b=0;
- for (int i = 0; i<5; i++)
- {
- b=b+Int32.Parse(a.Substring(i,1));
- }
- b= b%10>0 ? (10-(b%10)):0;
- Console.WriteLine("H"+a+b);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement