Q&A Discussies
C# {0}
2 Stemmen
4 AntwoordenC# {0}
1 Stem
3 AntwoordenWhy {0}
1 Stem
2 AntwoordenUnderstand the {0}
1 Stem
1 AntwoordWhat is {0}
0 Stemmen
1 AntwoordWhat's the meaning of {0} ?
23 Stemmen
14 Antwoordenwhat is {0} this.
1 Stem
2 AntwoordenWhat does {0} {1} means?
0 Stemmen
1 AntwoordWhat is the use of {0}
0 Stemmen
1 AntwoordWhy we use x = {0}
0 Stemmen
2 Antwoordenwhat is the meaning of : {0}
0 Stemmen
4 AntwoordenHow x = {0} turned into x = 10 ?
0 Stemmen
2 AntwoordenI 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 Stemmen
5 Antwoordenusing 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 Stem
8 AntwoordenWhat is this "{0}"?
4 Stemmen
1 AntwoordPopulair vandaag
Decorators in python.
2 Votes
Coding for Cybersecurity
1 Votes
Need help
1 Votes
Salut tout le monde
2 Votes
Pointers in c#
1 Votes
Please click me
0 Votes
Hello !
0 Votes