public static void Main()
Console.WriteLine(" TABLE OF CONTENTS ");
Console.WriteLine("Personal Information__________________________________________________________________________________________________1");
Console.WriteLine("Addition of 2 Numbers_________________________________________________________________________________________________2");
Console.WriteLine("Find Square of an Integer Number______________________________________________________________________________________3");
Console.WriteLine("Read And Print String_________________________________________________________________________________________________4");
Console.WriteLine("Calculate Area And Perimeter of a Rectangle___________________________________________________________________________5");
Console.WriteLine("Find Perimeter Circle Using Radius____________________________________________________________________________________6");
Console.WriteLine("Sum, Difference, Product And Quotient of any Two Numbers______________________________________________________________7");
Console.WriteLine("Two Salary For an Employee #1_________________________________________________________________________________________8");
Console.WriteLine("Two Salary For an Employee #2_________________________________________________________________________________________9");
Console.WriteLine("Determine Whether Temperature is Below or Above the Freezing Point___________________________________________________10");
Console.WriteLine("Determine Whether a Student Passed the Exam or Not___________________________________________________________________11");
Console.WriteLine("Determine The Largest Number Among All Entered Integers______________________________________________________________12");
Console.WriteLine("Program that accepts a Person's Initial Bank Balance_________________________________________________________________13");
Console.WriteLine("Cast Whether You Are Eligible or Not Eligible for Voting Depending on Your Age_______________________________________14");
Console.WriteLine("Prompt User To Enter Number and Display The Day Using If Else________________________________________________________15");
Console.WriteLine("Prompt User To Enter Number and Display The Day Using Switch Case____________________________________________________16");
Console.WriteLine("Enter Two Numbers and an Operation to Perform (+,-,*,/) and Display the Result of that Operation Using If Else ______17");
Console.WriteLine("Enter Two Numbers and an Operation to Perform (+,-,*,/) and Display the Result of that Operation Using Switch Case __18");
Console.WriteLine("Check Uppercase or Lowercase Alphabet________________________________________________________________________________19");
Console.WriteLine("Check if Number is Odd or Even_______________________________________________________________________________________20");
Console.WriteLine("Enter Year and Month Number, Print Number Of Days____________________________________________________________________21");
Console.WriteLine("Check the Sum of All Natural Numbers Using While Loop________________________________________________________________22");
Console.WriteLine("Check the Sum of All Numbers Using Do While Loop_____________________________________________________________________23");
Console.WriteLine("Check the Product of All Numbers Using While Loop____________________________________________________________________24");
Console.WriteLine("Check the Product of All Numbers Using Do While Loop_________________________________________________________________25");
Console.WriteLine("=======================================================================================================================");
Console.Write("Enter Compilation Number: ");
int number = Convert.ToInt32(Console.ReadLine());
Console.WriteLine("Name: Royen D. Dumaguit"); Console.WriteLine("Age: 21");
Console.WriteLine("Birthdate: November 23, 2000"); Console.WriteLine("Religion: Roman Catholic");
Console.WriteLine("Nationality: Filipino"); Console.WriteLine("Mother's Name: Lucia Dumaguit");
Console.WriteLine("Father's Name: Mario Dumaguit"); Console.WriteLine("Hobby: Dancing");
Console.WriteLine("Favorite Color: Black"); Console.WriteLine("Race: Asian");
Console.Write("Enter Number 1: ");
int num1 = Convert.ToInt32(Console.ReadLine());
Console.Write("Enter Number 2: ");
int num2 = Convert.ToInt32(Console.ReadLine());
Console.WriteLine("The Total Is:" + total);
Console.Write("Enter An Integer Number: ");
int a = Convert.ToInt32(Console.ReadLine());
Console.Write("The Given Number Is: " + a);
Console.WriteLine("The Squared Number Is: " + result);
Console.Write("Enter Name: ");
string name = Console.ReadLine();
Console.WriteLine("The String is: " + name);
Console.Write("Enter Base 1: ");
double b1 = Convert.ToDouble(Console.ReadLine());
Console.Write("Enter Base 2: ");
double b2 = Convert.ToDouble(Console.ReadLine());
double perimeter = (b1 + b2) * 2;
Console.WriteLine("The area is: " + area);
Console.WriteLine("The perimeter is: " + perimeter);
Console.Write("Enter Radius: ");
double r = Convert.ToDouble(Console.ReadLine());
perimeter = 2 * 3.14 * r;
Console.WriteLine("The Perimeter is: " + perimeter);
Console.Write("Enter First Number: ");
int n1 = Convert.ToInt32(Console.ReadLine());
Console.Write("Enter Second Number: ");
int n2 = Convert.ToInt32(Console.ReadLine());
int s = n1 + n2; int d = n1 - n2; int p = n1 * n2; int q = n1 / n2;
Console.WriteLine("{0} + {1} = {2}", n1, n2, s);
Console.WriteLine("{0} - {1} = {2}", n1, n2, d);
Console.WriteLine("{0} * {1} = {2}", n1, n2, p);
Console.WriteLine("{0} / {1} = {2}", n1, n2, q);
Console.Write("Input Salary: ");
int salary = Convert.ToInt32(Console.ReadLine());
Console.Write("Input Overtime: ");
int overtime = Convert.ToInt32(Console.ReadLine());
int total_sal = salary + overtime;
Console.WriteLine("The Total Salary is: " + total_sal);
Console.Write("Salary Earned: ");
double SE = Convert.ToDouble(Console.ReadLine());
Console.Write("OvertimePaid: ");
double OP = Convert.ToDouble(Console.ReadLine());
Console.Write("NumberOfWorkdays: ");
double NOW = Convert.ToDouble(Console.ReadLine());
Console.Write("NumberHourRendered: ");
double NHR = Convert.ToDouble(Console.ReadLine());
double Total_sal = SE + OP;
Console.WriteLine("The Total Salary Recieved is: " + Total_sal);
Console.Write("Enter Temperature: ");
double temperature = Convert.ToDouble(Console.ReadLine());
Console.WriteLine(temperature + " Is Below The Freezing Point");
else if (temperature > 32)
Console.WriteLine(temperature + "Is Above The Freezing Point"); ;
Console.Write("Input First Grading Score: ");
int m1 = Convert.ToInt32(Console.ReadLine());
Console.Write("Input Second Grading Score: ");
int m2 = Convert.ToInt32(Console.ReadLine());
Console.Write("Input Third Grading Score: ");
int m3 = Convert.ToInt32(Console.ReadLine());
Console.Write("Input Fourth Grading Score: ");
int m4 = Convert.ToInt32(Console.ReadLine());
int grade = (m1 + m2 + m3 + m4) / 4;
Console.WriteLine("Your Average Grade Is: " + grade); Console.WriteLine("Fail");
Console.WriteLine("Your Average Grade Is:" + grade); Console.WriteLine("Pass");
Console.WriteLine("Invalid");
Console.Write("Enter First Value: ");
int A = Convert.ToInt32(Console.ReadLine());
Console.Write("Enter Second Value: ");
int B = Convert.ToInt32(Console.ReadLine());
Console.WriteLine(B + " Is the Largest Number");
Console.WriteLine(A + " Is the Largest Number");
Console.Write("Read Balance: ");
double balance = Convert.ToDouble(Console.ReadLine());
Console.Write("Read Transactions: ");
double transaction = Convert.ToDouble(Console.ReadLine());
balance = balance + transaction;
Console.WriteLine("Your New Balance is: " + balance);
Console.Write("Input New Transaction: ");
transaction = Convert.ToDouble(Console.ReadLine());
Console.WriteLine("Input will Terminate. Your Balance is Zero");
Console.Write("Input your Age: ");
int age = Convert.ToInt32(Console.ReadLine());
Console.WriteLine("You Are Eligible For Voting");
Console.WriteLine("You Are Not Eligible For Voting");
Console.Write("Enter Number: ");
int day = Convert.ToInt32(Console.ReadLine());
Console.WriteLine("Monday");
Console.WriteLine("Tuesday");
Console.WriteLine("Wednesday");
Console.WriteLine("Thursday");
Console.WriteLine("Friday");
Console.WriteLine("Saturday");
Console.WriteLine("Sunday");
Console.WriteLine("Invalid number");
Console.Write("Enter Number: ");
int days = Convert.ToInt32(Console.ReadLine());
Console.WriteLine("Monday");
Console.WriteLine("Tuesday");
Console.WriteLine("Wednesday");
Console.WriteLine("Thursday");
Console.WriteLine("Friday");
Console.WriteLine("Saturday");
Console.WriteLine("Sunday");
Console.WriteLine("Invalid number");
Console.Write("Enter First Number: ");
double number1 = Convert.ToDouble(Console.ReadLine());
Console.Write("Enter Operator: ");
string op = Console.ReadLine();
Console.Write("Enter Second Number: ");
double number2 = Convert.ToDouble(Console.ReadLine());
double sum = number1 + number2;
Console.WriteLine("{0} + {1} = {2}", number1, number2, sum);
double diff = number1 - number2;
Console.WriteLine("{0} - {1} = {2}", number1, number2, diff);
double prod = number1 * number2;
Console.WriteLine("{0} * {1} = {2}", number1, number2, prod);
double quot = number1 / number2;
Console.WriteLine("{0} / {1} = {2}", number1, number2, quot);
Console.Write("Enter First Value: ");
double V1 = Convert.ToDouble(Console.ReadLine());
Console.Write("Enter Operator: ");
string o = Console.ReadLine();
Console.Write("Enter Second Value: ");
double V2 = Convert.ToDouble(Console.ReadLine());
Console.WriteLine("{0} + {1} = {2}", V1, V2, su);
Console.WriteLine("{0} - {1} = {2}", V1, V2, dif);
Console.WriteLine("{0} * {1} = {2}", V1, V2, pro);
Console.WriteLine("{0} / {1} = {2}", V1, V2, quo);
Console.WriteLine("Invalid Operator");
Console.Write("Enter Character: ");
char ch = Convert.ToChar(Console.ReadLine());
if (ch >= 'a' && ch <= 'z')
Console.WriteLine(ch + " Is a Lowercase Alphabet");
else if (ch >= 'A' && ch <= 'Z')
Console.WriteLine(ch + " Is a Uppercase Alphabet");
Console.WriteLine(ch + " Is Not Alphabet");
Console.Write("Enter Integer Number: ");
int num = Convert.ToInt32(Console.ReadLine());
Console.WriteLine(num + " Is an Even number");
Console.WriteLine(num + " Is an Odd number");
Console.Write("Enter Month Number: ");
int integer = Convert.ToInt32(Console.ReadLine());
Console.WriteLine("January");
Console.WriteLine("January has 31 days");
Console.WriteLine("February");
Console.WriteLine("February has 28 days");
Console.WriteLine("March");
Console.WriteLine("March has 31 days");
Console.WriteLine("April");
Console.WriteLine("April has 30 days");
Console.WriteLine("May");
Console.WriteLine("May has 31 days");
Console.WriteLine("June");
Console.WriteLine("June has 30 days");
Console.WriteLine("July");
Console.WriteLine("July has 31 days");
Console.WriteLine("August");
Console.WriteLine("August has 31 days");
Console.WriteLine("September");
Console.WriteLine("September has 30 days");
Console.WriteLine("October");
Console.WriteLine("October has 31 days");
Console.WriteLine("November");
Console.WriteLine("November has 30 days");
Console.WriteLine("December");
Console.WriteLine("December has 31 days");
Console.WriteLine("Invalid Number");
int asd = 0, index = 0, n = 0, i = 1;
Console.WriteLine("{0} + {1} = {2}", index, i, asd);
Console.WriteLine("Sum is equal to = {0}", asd);
int ASD = 0, INDEX = 0, N = 0, I = 1;
ASD = ASD + I; INDEX = INDEX + N;
Console.WriteLine("{0} + {1} = {2}", INDEX, I, ASD);
Console.WriteLine("Sum is equal to = {0}", ASD);
Console.WriteLine("{0} * {1} = {2}", eq, wq, g);
Console.WriteLine("{0} * {1} = {2}", EQ, WQ, G);
Console.WriteLine("Invalid");
Console.WriteLine("Would you like to continue? YES or NO");
string answer = Console.ReadLine();
Console.WriteLine("Thankyo and GodBless this program is made by: LyRoJun");
Console.WriteLine("Invalid Answer");
Console.WriteLine("Please Type Yes or No Only");