string a1 = "Prasanth";
string a2 = "Sethupathy";
int aa = a1.Length;
a1 = a2 = a1 + a2;
a2 = a2.Substring(0, aa);
a1 = a1.Substring(aa);
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApp
{
class Program
{
static void Main(string[] args)
{
int x, y, z, c = 0;
Console.WriteLine("enter the number");
x = int.Parse(Console.ReadLine());
{
y = x / 1000;
z = (x % 1000) / 500;
c = ((x % 1000) % 500) / 100;
}
Console.WriteLine("the 1000 is {0}", y);
Console.WriteLine("the 500 is:" + z);
Console.WriteLine("the 100 is {0}", c);
Console.ReadKey();
}
}
}