Sunday, May 1, 2016

C# programming Language Code Examples-Data Types(2)

Smiley face

Code:

Smiley face

Output:

Smiley face

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:

Smiley face

Output:

Smiley face

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

Wel Come !!! computer express