Обсуждения
Understand the {0}
1 голос
1 ответWhat is {0}
0 голосов
1 ответWhat's the meaning of {0} ?
23 голосов
14 ответовwhat is {0} this.
1 голос
2 ответовWhat does {0} mean in C#
1 голос
4 ответовWhat does {0} {1} means?
0 голосов
1 ответC#: what is {0} or {1}?
1 голос
2 ответовWhat is the use of {0}
0 голосов
1 ответWhy we use x = {0}
0 голосов
2 ответовwhat is the meaning of : {0}
0 голосов
4 ответовHow x = {0} turned into x = 10 ?
0 голосов
2 ответовwhat is this {0} ?
what does it mean?
0 голосов
1 ответI dont unserstand the output if this code :
# string formatting
nums = [4, 5, 6]
msg = "Numbers: {0} {0} {2}". format(nums[0], nums[1], nums[2])
print(msg)
4 4 6
but when I do :
# string formatting
nums = [4, 5, 6]
msg = "Numbers: {0} {0} {2}". format(nums[1], nums[1], nums[2])
print(msg)
it gives me
5 5 6
is there a priority in the Reading ?
0 голосов
5 ответовusing System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace SoloLearn
{
class Program
{
static void Main(string[] args)
{
int age = Convert.ToInt32(Console.ReadLine());
int broAge = Convert.ToInt32(Console .Readline());
Console.WriteLine("You are {0} years old", "your bro is {1}", age, broAge );
}
}
}
-1 голос
7 ответовWhat is this "{0}"?
4 голосов
1 ответАктуальное сегодня
X velocity
2 Votes
And... Who is the staff then?
3 Votes
Files not linking in C++
0 Votes
I am a super beginner
0 Votes
Web Dev
1 Votes
Pls give me an idea
1 Votes
Why Pro?
1 Votes