C# Flashcards

1
Q

to assign 2 values in one line of code.

A

Console.WriteLine(“You entered: {0} , therefore you won a {1}”, x,y);

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

to scan an input

A

Console.ReadLine();

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

to write a new line you type ?
to write in the same line

A

new line> Console.WriteLine(“ ay 7aga”);
same line > Console.Write(“ ay 7aga”);

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

program to ask for ur name then type hello + ur name

A

Console.Write(“What is your name?”)
actualName= Console.Readline();
Console.Write(“

How well did you know this?
1
Not at all
2
3
4
5
Perfectly