Skip to content

User Input #32

@Christo77793

Description

@Christo77793

Within these interactive notebooks, I am unable to find any examples on how to get a user's input? As I try Console.ReadLine() it proceeds to execute the next line of code.

Example:
string []answer = new string[10];

for(int i = 0; i < answer.Length; i++)
{
answer[i]= Console.ReadLine();
}

With this code, the cell keeps running for me with no prompt (like with Python) to enter an input.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions