0
I didn't understand output
I can't solve like this questions; what is the output of this code? Can anyone explain it with examples?
6 Antworten
+ 2
so, they said they want to 'format' the string.
they wrote something like (sorry, couldnt copy their text)
int x= 10;
int y = 20;
Console.Write("x ={0} and y={1} world",x,y);
output will be
x = 10 and y=20 world
this code will work...it illustrates the same point, which is:
this is a clean way to just substitute variables in a string...which can be a sentence to the reader where you need to inform them about "10 unread messages and 20 missed calls"
the {0} means "get the first variable after our formatted string ends.in the coding world, counting often starts from zero.
and {1} means, display the SECOND variable after the formatted string.
its all for display's sake
+ 1
😁😁
0
Ahh, I think I'm Blind 😵😵😵
I can't see the code
0
I handle it Erwin, but thx 😄
0
Just kidding 😁 If you can show me the code or the question, may be I can help you 😊
0
hfzhzjsutzuydutsgstusnzgxghuuu