Introducing of C#
C# is a :- Known as c-sharp is an object- oriented programming
language introducing by Microsoft.
specially designed to work with Microsoft, .Net platform .
Introducing C# Compliers
1) A complier convert programs with in a particular
programming language into the Machine language.
2) A compiler take the programming language instructions as
the input- process- then and convert then to machine language.
The following figure show the working of a complier.
Program Written in language1 - Complier for language --> Machine language1 .
Program Written in language 2- Complier for language 2--> Machine Language2.
1. Select all programs
2. Microsoft Visual Studio 2005
3. Visual Studio Tools
4. Visual Studio Command Prompt
5. your file extension want to .cs .
Simple Program of C# language
using System;
class HEMANT
{
public static void Main()
{
Console.WriteLine("WELCOME TO MY FIRST C# PROGRAM");
}
}
THEN this program we will save on file.cs extension.
then we complie this program our output is
(WELCOME TO MY FIRST C# PROGRAM)
1> "System" is a Name Space .
2> "class" is predefined class.
The System name space contains many predefined classes . we Write using
system as the first line in our the c# program file to include all the predefined
classes in the end of the line; (TERMINATOR).
DATA TYPE
1 Int Numeric , 2
2 String Collection of character --> "NIIT"
3 Char Single latter --> 'M'
4 Float Decimal --> 1.12354
5 Double Decimal --> 1.1223
6 Boolean Value --> 0 or 1
Example :- int age =30
string name ="HEMANT"
char letter=
Accept value from user
string format "2" + "3"
integer
i. Declare variable
ii. Accept value
x = Convert.ToInt32(Console.ReadLine);
Class Method

Introducing c# (hemant)

  • 1.
    Introducing of C# C#is a :- Known as c-sharp is an object- oriented programming language introducing by Microsoft. specially designed to work with Microsoft, .Net platform . Introducing C# Compliers 1) A complier convert programs with in a particular programming language into the Machine language. 2) A compiler take the programming language instructions as the input- process- then and convert then to machine language. The following figure show the working of a complier. Program Written in language1 - Complier for language --> Machine language1 . Program Written in language 2- Complier for language 2--> Machine Language2. 1. Select all programs 2. Microsoft Visual Studio 2005 3. Visual Studio Tools 4. Visual Studio Command Prompt 5. your file extension want to .cs . Simple Program of C# language
  • 2.
    using System; class HEMANT { publicstatic void Main() { Console.WriteLine("WELCOME TO MY FIRST C# PROGRAM"); } } THEN this program we will save on file.cs extension. then we complie this program our output is (WELCOME TO MY FIRST C# PROGRAM) 1> "System" is a Name Space . 2> "class" is predefined class. The System name space contains many predefined classes . we Write using system as the first line in our the c# program file to include all the predefined classes in the end of the line; (TERMINATOR). DATA TYPE 1 Int Numeric , 2 2 String Collection of character --> "NIIT" 3 Char Single latter --> 'M' 4 Float Decimal --> 1.12354 5 Double Decimal --> 1.1223
  • 3.
    6 Boolean Value--> 0 or 1 Example :- int age =30 string name ="HEMANT" char letter= Accept value from user string format "2" + "3" integer i. Declare variable ii. Accept value x = Convert.ToInt32(Console.ReadLine); Class Method