Code:
Output:
note:
here 'x' is name of 'int' type variable you can give any name.
with in 'Console.WriteLine()' you have to put '{0}' & variable name 'x'
Code:
Output:
note:
if you going to print the 2 variables by using one Console
then you can number {0}{1}
Like wise you can use many variables
No comments:
Post a Comment