use console.readline to assign a value to an index in an array c# -
i'm making hangman game , want able take user input console , assign values in array.
string hangword; char[] hangarray; console.writeline("please enter hangman word."); hangword = console.readline(); char[] hangarray = {hangword} how do if user enters word "shower" indexes hangarray[] = {"s","h","o","w","e","r"}; automatically?
char[] hangarray = hangword.tochararray()
Comments
Post a Comment