+ 2
How to mention a variable in text ?
How to mention a variable in text ? Example: int number1 = 1; int number2 = 2; What is the result of number1 + number2 ? or What is the result of 1 + 2 ? Thanks.
4 Respostas
+ 2
using System;
class MainClass {
public static void Main (string[] args) {
int number1 = 1;
int number2 = 2;
Console.WriteLine("What is the result of {0} + {1}?", number1, number2);
}
}
+ 3
Thanks *-*
+ 2
C# sorry
+ 1
You didn't tell us which language