When we are assigning integer as 89 then why Console.WriteLine =89??? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

When we are assigning integer as 89 then why Console.WriteLine =89???

1st Nov 2016, 3:46 PM
Yashodhan Mehta
2 Answers
+ 1
Console. WriteLine is a function which is used to print the output in C#, so we cant assign value to that, but we can insert a variable in that... So that it can show the assigned value..
1st Nov 2016, 5:25 PM
Uplabdhi Singh
Uplabdhi Singh - avatar
0
console.writeline use for displaying on screen,we can't assign value in that statement
1st Nov 2016, 5:20 PM
Umer Waleed Hashmi
Umer Waleed Hashmi - avatar