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);
2
Q
to scan an input
A
Console.ReadLine();
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”);
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(“