Showing posts with label CS. Show all posts
Showing posts with label CS. Show all posts

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

Friday, April 22, 2016

C# programming Language Code Examples-print(1)

Smiley face

Code:

Smiley face

Output:

Smiley face

note:

whatever you type into the Console.Write() that will be the output.

\n- canbe use for get a new line


try and see \t \' \" \? into Console.Write()

Code:

Smiley face

Output:

Smiley face

Console.WriteLine() automatically generate the new line

Smiley face

this code should be in the all programme

Wel Come !!! computer express