INTRODUCTION OF C#
WEB APPLICATION
DEVELOPMENT(. NETframework)
1.
Frame
work is a collection of tool and libraries
#Dot net framework environment
1. Solution Explore window – all types of resources, file
creation , folder inside solution explore windows.
2. Server explore window- Only used databases.
3. Toolbox windows – All types of tool are provides in it
(textbox, radiobutton etc).
4. Property window -
representing all property(height, width , color).
#
APPLICATION DEVELOPMENT LANGUAGE(C#)
1.C#
is pure object oriented
2.C
# supported web application development environment .
3.
Extenxion is .c#
#
How to created C # Application rules
STEPS
1
file -> new -> project ->C#
-> console App(.netFramework)-> selected browse-> selected your
folder -> okay.
Syntax:-
using System; //Include library
using
System.Collections.Generic;
using System.Linq;
using System.Text;
using
System.Threading.Tasks;
namespace ConsoleApp1
{
//all object oriented programming concept
area.
class Program
{
static void Main(string[] args)
{
//create all basic program.
}
}
}
INPUT OUTPUT STATEMENT:-
Output-
using System;
using
System.Collections.Generic;
using System.Linq;
using System.Text;
using
System.Threading.Tasks;
namespace ConsoleApp1
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("welcome to
c#");
Console.ReadKey();
}
}
}
C# VARIABLE
1.numàint -- int.parse()
2.stringàstring -- readline()
3.decimalà
float/double double.parse()
4.booleanàboolean.
Input statement:-->
In c# input statement is
used to ReadLine():=
using System;
using
System.Collections.Generic;
using System.Linq;
using System.Text;
using
System.Threading.Tasks;
namespace ConsoleApp1
{
class Program
{
static void Main(string[] args)
{
int a, b, c;
Console.WriteLine("enter any
number:-");
a = int.Parse(Console.ReadLine());
Console.WriteLine("enter any
second number:-");
b = int.Parse(Console.ReadLine());
c = a + b;
Console.WriteLine("addition of
two number is:-");
Console.WriteLine(c);
Console.ReadKey();
}
}
}
Comments
Post a Comment