class3
class3
===============
if
if else
else if
nested if - if another if condition
switch
using System;
namespace MyfirstConsole
{
internal class Program
{
static void Main()
{
int a, b, c;
}
Console.ReadKey();
}
}
}
if condition
54
switch
========
switch(condition)
case 1 :
statement
break;
case 2 :
statement
break;
default :
statement
break;
using System;
namespace MyfirstConsole
{
internal class Program
{
static void Main()
{
int recharge;
Console.WriteLine("enter recharge amount");
recharge=int.Parse(Console.ReadLine());
switch (recharge)
{
case 10:
Console.WriteLine("recharge {0} is done!",recharge);
break;
case 20:
Console.WriteLine("recharge {0} is done!",recharge);
break;
case 30:
Console.WriteLine("recharge {0} is done!", recharge);
break;
case 40:
Console.WriteLine("recharge {0} is done!",recharge);
break;
default:
Console.WriteLine("invalid recharge!");
break;
}
Console.ReadKey();
}
}
=========================
Looping Statements
==================
while
do-while
for
foreach
1 to 5
int i = 10;
while (i >= 1)
{
Console.WriteLine(i);
i--;
}
======================
using System;
namespace MyfirstConsole
{
internal class Program
{
static void Main()
{
int table,i = 1;
Console.WriteLine("Please enter table number");
table=int.Parse(Console.ReadLine());
Console.ReadKey();
}
}
-====================
using System;
namespace MyfirstConsole
{
internal class Program
{
static void Main()
{
int i = 1;
Console.ReadKey();
}
}
}
==========================
Looping statements
===========
initialization
condition
iteration
while -
do-while
for
using System;
namespace MyfirstConsole
{
internal class Program
{
static void Main()
{
int i = 1; // initilization
Console.ReadKey();
}
}
=================
using System;
namespace MyfirstConsole
{
internal class Program
{
static void Main()
{
int i = 1; // initilization
Console.ReadKey();
}
}
=================================
using System;
namespace MyfirstConsole
{
internal class Program
{
static void Main()
{
int i = 120; // initilization
do
{
Console.WriteLine(i);
i = i + 5;
}
}
==================================
using System;
namespace MyfirstConsole
{
internal class Program
{
static void Main()
{
for (int i = 1; i <= 10; i++)
{
Console.WriteLine(i);
}
for (int i = 10; i >= 1; i--)
{
Console.WriteLine(i);
}
Console.ReadKey();
}
}
==================================
Arrays
=============
using System;
namespace MyfirstConsole
{
internal class Program
{
static void Main()
{
Console.ReadKey();
}
}
==============
using System;
namespace MyfirstConsole
{
internal class Program
{
static void Main()
{
int[,] st = new int[3, 3];
st[0, 0] = 2;
st[0, 1] = 2;
st[1, 0] = 3;
st[1, 1] = 4;
Console.WriteLine(st.Length);
Console.WriteLine(st[1,1]);
Console.ReadKey();
}
}
====================================
Project
===============
UI - html,css,javascript,jquery,bootstrap,angular,react
js.....
Web , mobile , windows