#include "stdafx.h" #include "iostream" using namespace std; int main () { char str[10]; cout<<"Enter string "; cin>>str;//get the string from keyboard cout<<"Your Entered string "; for(int i=0;i<9;i++) cout<<str[i]<<endl;//show the single word on screen return 0; }
static void Main(string[] args) { string name = "Hello India"; char[] MyCh= name.ToArray(); for (int i = 0; i < MyCh.Length; i++) Console.WriteLine(MyCh[i].ToString()); Console.Read(); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)