Skip to content
Loading
  • Jignesh Kumar
    +3
    Hi Jaya Prakash,
     
    Please use this one which will help you,
     
    1. string firstString = Console.ReadLine();  
    2. string secondString = Console.ReadLine();  
    3. int stringCharacterYouWant = Convert.ToInt32(Console.ReadLine());  
    4.   
    5.   
    6. Console.WriteLine(firstString.Substring(0, stringCharacterYouWant) + secondString.Substring(secondString.Length - stringCharacterYouWant, stringCharacterYouWant));  
     In Above one console it will take tree input, two string and another howmany charater you want from both string, based on that it will take from both string and and concate in another string.
     
    For below input :
    FisrtString : Jignesh
    Second String : Kumar,
    character from string : 3

    Out put will be : Jigmar 
    +3
  • +2

    Thank You so much sir pls guide me to be a good developer  

    +2