Discussions Q&R
C# {0}
2 Votes
4 RéponsesC# {0}
1 Vote
3 RéponsesWhy {0}
1 Vote
2 RéponsesUnderstand the {0}
1 Vote
1 RéponseWhat is {0}
0 Vote
1 RéponseWhat's the meaning of {0} ?
23 Votes
14 Réponseswhat is {0} this.
1 Vote
2 RéponsesWhat is the use of {0}
0 Vote
1 RéponseWhy we use x = {0}
0 Vote
2 RéponsesI 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 Vote
5 Réponsesusing 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 Vote
7 RéponsesWhat is this "{0}"?
4 Votes
1 RéponseAujourd'hui en vedette
Best Python Calculator Code
1 Votes
New code
1 Votes
Clean Code
3 Votes
How would you solve the part of the C# Intermediate code project that requires operator overloading?
0 Votes
Hello Everyone
0 Votes