Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

Input:
enter the value:1234
output:
1
2
3
4
write a program to get above output.....

Answer Posted / chandan

public static void Main()
        {
            string str = Console.ReadLine();
            foreach (var obj in str)
            {
                Console.Write(obj.ToString());
                Console.WriteLine();
            }
            Console.ReadLine();
        }

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Write a program to sort the number with different sorts in one program ??

2370


What is overloading in oops?

1156


Get me a number puzzle game-program

2245


Why polymorphism is used in oops?

1046


Why is oop useful?

1100


What is object and example?

1173


Why oops is important?

1111


What is the difference between static polymorphism and dynamic polymorphism?

1079


What is an example of genetic polymorphism?

1180


What is the benefit of oop?

1048


What is a class oop?

1002


What is the difference between procedural programming and oops?

1125


What are properties in oop?

1080


What is a superclass in oop?

1169


What is class encapsulation?

1090