SHARE
TWEET

Untitled

a guest Nov 19th, 2019 93 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. using System;
  2.  
  3. class MainClass
  4. {
  5. public static void Main(string[] args)
  6.     {
  7.       string a = Console.ReadLine();
  8.       int b=0;
  9.       for (int i = 0; i<5; i++)
  10.         {
  11.           b=b+Int32.Parse(a.Substring(i,1));
  12.         }
  13.         b= b%10>0 ? (10-(b%10)):0;
  14.         Console.WriteLine("H"+a+b);
  15.     }
  16. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top