udauwak keranna

channaq4

Well-known member
  • Jun 30, 2008
    3,317
    1,049
    113
    නොදනි(Unknown)
    ane mata c# walin curser 1a left pathata thiyana character (space 1k hamba wenakan) read keranna widiyak danna wa nam kiyanna kooooo....:(

    danne nathnam bump 1k wath dala yanna....:(

    ane loku udauwak
    :(
     

    Dubmood

    Member
    May 20, 2011
    760
    44
    0
    Old School
    Code:
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    
    namespace ConsoleApplication1
    {
        class Program
        {
            static void Main(string[] args)
            {
                Console.WriteLine("Type anything to proceed");
                string typedWord = Console.ReadLine();
    
                foreach (char Char in typedWord)
                {
    
                    if (Char == ' ')
                    {
                        Console.ReadLine();
                        Console.WriteLine("U got a space");
                    }
                    else
                    {
                        Console.Write(Char);
                    }
    
                }
                Console.ReadLine();
            }
        }
    }