Dyskusje Q&A
C# {0}
 2 głosów
 4 odpowiedziC# {0}
 1 Głos
 3 odpowiedziWhy {0}
 1 Głos
 2 odpowiedziUnderstand the {0}
 1 Głos
 1 OdpowiedźWhat is {0}
 0 głosów
 1 OdpowiedźWhat's the meaning of {0} ?
 23 głosów
 14 odpowiedziwhat is {0} this.
 1 Głos
 2 odpowiedziWhat does {0} {1} means?
 0 głosów
 1 OdpowiedźWhat is the use of {0}
 0 głosów
 1 OdpowiedźWhy we use  x = {0}
 0 głosów
 2 odpowiedziwhat is the meaning of :  {0}
 0 głosów
 4 odpowiedziI 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 głosów
 5 odpowiedziusing 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 Głos
 8 odpowiedziWhat is this "{0}"?
 4 głosów
 1 OdpowiedźPopularne dzisiaj
Remove
 0 Votes
I need help to solve this
 0 Votes
Project
 0 Votes
Engineer Cloud
 0 Votes
Lua?
 1 Votes