C Sharp Progrms
C Sharp Progrms
using System.Collections.Generic;
using System.Linq;
using System.Text;
double per;
Console.Write("\n\n");
Console.Write("----------------------------------------------------------------------
---------");
Console.Write("\n\n");
rl = Convert.ToInt32(Console.ReadLine());
Console.Write("Input the Name of the Student :");
nm = Console.ReadLine();
phy = Convert.ToInt32(Console.ReadLine());
che = Convert.ToInt32(Console.ReadLine());
ca = Convert.ToInt32(Console.ReadLine());
div = "First";
else
div = "Second";
else
div = "Pass";
else
div = "Fail";
Console.Write("\nRoll No : {0}\nName of Student : {1}\n", rl,
nm);
Console.ReadLine();
int weeknumber;
switch (weeknumber)
case 1: Console.WriteLine("Monday");
break;
case 2: Console.WriteLine("Tuesday");
break;
case 3: Console.WriteLine("Wednesday");
break;
case 4: Console.WriteLine("Thursday");
break;
case 5: Console.WriteLine("Friday");
break;
case 6: Console.WriteLine("Saturday");
break;
case 7: Console.WriteLine("Sunday");
break;
default:
Console.ReadLine();
string str;
l = str.Length;
while (i < l)
if ((str[i] >= 'a' && str[i] <= 'z') || (str[i] >= 'A' && str[i]
<= 'Z'))
alphabet++;
digit++;
else
specialchar++;
i++;
}
Console.Write("Number of Alphabets in the string is : {0}\n",
alphabet);
Console.ReadLine();