Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Program
//Rextester.Program.Main is the entry point for your code. Don't change it. //Microsoft (R) Visual C# Compiler version 2.9.0.63208 (958f2354) using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; namespace Rextester { public class Program { public static void Main(string[] args) { Console.WriteLine("What is your name?"); string uName = Console.ReadLine(); uName.ToLower(); if (uName == "shuhail") { Console.WriteLine("Welcome Master!!!"); //Welcoming } else if (uName == "habeebi") { Console.WriteLine("Welcome " + uName); } else { Console.WriteLine("Welcome " + uName + " Habeebi"); } Console.WriteLine("So this is just a program made by Shuhail just for fun!!\nHope you guys enjoy!!!"); Console.WriteLine("Are You Ready?"); string ready1; ready1 = Console.ReadLine(); if (ready1 == "no") { Console.WriteLine("Well.....take care then!!! Bye"); } else { Console.WriteLine("Well!!! Then let's get started!!"); } Console.WriteLine("So you are " + uName); Console.WriteLine("Let me know somethings about you if it doesn't bother you!!\n Are you Ready?"); string ready2; ready2 = Console.ReadLine(); if (ready2 == "no") { Console.WriteLine("Well.....good bye then!!!"); } else { Console.WriteLine("Well!!! Then let's move on!!"); } Console.WriteLine("Are you excited ?"); string Excited; Excited = Console.ReadLine(); Excited.ToLower(); int i = 1; while (i == 1) { if (Excited == "yes") { Excited = "1"; Convert.ToInt32(Excited); i++; } else if (Excited == "no") { Excited = "0"; Convert.ToInt32(Excited); i++; } else { Console.WriteLine("I did'nt get it. Can you please try that again? just say yes/no. That's it!!"); } Console.WriteLine("Why?"); Console.ReadLine(); Console.WriteLine("Hmm!!\n\n"); Console.WriteLine("Let's Collect some information about you!!"); Console.WriteLine("Were you born on or after 2002?"); string Born = Console.ReadLine(); if (Born == "no") { Console.WriteLine("Are you Married?"); Console.ReadLine(); } else if (Born == "yes") { break; } else { Console.WriteLine("I'm not sure I'd get that one"); } Console.WriteLine("Anyways..!!! Let's play a game!!\n\n Just think of a Number from 1-9"); Console.WriteLine("Got one?"); Console.ReadLine(); Console.WriteLine("Multiply it with 3. you can use calculator anytime by pressing \'c\' and enter"); string calcul = Console.ReadLine(); if (calcul == "c") { Console.WriteLine("Enter the number for which you wanted to use the Calculator for: "); int uNum1 = Convert.ToInt32(Console.ReadLine()); Console.WriteLine("Enter the second number: "); int uNum2 = Convert.ToInt32(Console.ReadLine()); int t = 1; while (t == 1) { Console.WriteLine("type any operator to continue\n +\n -\n /\n x"); string Operator = Console.ReadLine(); int answer1; ; if (Operator == "+") { answer1 = uNum1 + uNum2; Console.WriteLine(answer1); t++; } else if (Operator == "-") { answer1 = uNum1 - uNum2; Console.WriteLine(answer1); t++; } else if (Operator == "/") { answer1 = uNum1 / uNum2; Console.WriteLine(answer1); t++; } else if (Operator == "x") { answer1 = uNum1 * uNum2; Console.WriteLine(answer1); t++; } else { Console.WriteLine("I'm not sure I'd get that!!!"); } } } Console.WriteLine("Great!!\n\n"); Console.WriteLine("Now Add 3."); string Add3 = Console.ReadLine(); if (Add3 == "c") { Console.WriteLine("Enter the number for which you wanted to use the Calculator for: "); int uNum1 = Convert.ToInt32(Console.ReadLine()); Console.WriteLine("Enter the second number: "); int uNum2 = Convert.ToInt32(Console.ReadLine()); int t = 1; while (t == 1) { Console.WriteLine("type any operator to continue\n +\n -\n /\n x"); string Operator = Console.ReadLine(); int answer1; ; if (Operator == "+") { answer1 = uNum1 + uNum2; Console.WriteLine(answer1); t++; } else if (Operator == "-") { answer1 = uNum1 - uNum2; Console.WriteLine(answer1); t++; } else if (Operator == "/") { answer1 = uNum1 / uNum2; Console.WriteLine(answer1); t++; } else if (Operator == "x") { answer1 = uNum1 * uNum2; Console.WriteLine(answer1); t++; } else { Console.WriteLine("I'm not sure I'd get that!!!"); } } } Console.WriteLine("That's Great!!\n\nNow Muliply the product again with 3. remember,you can use calculator py typing c and then pressing enter\n\nDone?"); string Add4 = Console.ReadLine(); if (Add4 == "c") { Console.WriteLine("Enter the number for which you wanted to use the Calculator for: "); int uNum1 = Convert.ToInt32(Console.ReadLine()); Console.WriteLine("Enter the second number: "); int uNum2 = Convert.ToInt32(Console.ReadLine()); int t = 1; while (t == 1) { Console.WriteLine("type any operator to continue\n +\n -\n /\n x"); string Operator = Console.ReadLine(); int answer1; ; if (Operator == "+") { answer1 = uNum1 + uNum2; Console.WriteLine(answer1); t++; } else if (Operator == "-") { answer1 = uNum1 - uNum2; Console.WriteLine(answer1); t++; } else if (Operator == "/") { answer1 = uNum1 / uNum2; Console.WriteLine(answer1); t++; } else if (Operator == "x") { answer1 = uNum1 * uNum2; Console.WriteLine(answer1); t++; } else { Console.WriteLine("I'm not sure I'd get that!!!"); } } } Console.WriteLine("So You've got a two digit number. If no then there might be any mistake in your calculations!!"); Console.WriteLine("Now add the both two digits together to get a digit number."); Console.ReadLine(); Console.WriteLine("Now add 5"); string Add5=Console.ReadLine(); if (Add5 == "c") { Console.WriteLine("Enter the number for which you wanted to use the Calculator for: "); int uNum1 = Convert.ToInt32(Console.ReadLine()); Console.WriteLine("Enter the second number: "); int uNum2 = Convert.ToInt32(Console.ReadLine()); int t = 1; while (t == 1) { Console.WriteLine("type any operator to continue\n +\n -\n /\n x"); string Operator = Console.ReadLine(); int answer1; ; if (Operator == "+") { answer1 = uNum1 + uNum2; Console.WriteLine(answer1); t++; } else if (Operator == "-") { answer1 = uNum1 - uNum2; Console.WriteLine(answer1); t++; } else if (Operator == "/") { answer1 = uNum1 / uNum2; Console.WriteLine(answer1); t++; } else if (Operator == "x") { answer1 = uNum1 * uNum2; Console.WriteLine(answer1); t++; } else { Console.WriteLine("I'm not sure I'd get that!!!"); } } } Console.WriteLine("Now add 23"); string Add23=Console.ReadLine(); if (Add23 == "c") { Console.WriteLine("Enter the number for which you wanted to use the Calculator for: "); int uNum1 = Convert.ToInt32(Console.ReadLine()); Console.WriteLine("Enter the second number: "); int uNum2 = Convert.ToInt32(Console.ReadLine()); int t = 1; while (t == 1) { Console.WriteLine("type any operator to continue\n +\n -\n /\n x"); string Operator = Console.ReadLine(); int answer1; ; if (Operator == "+") { answer1 = uNum1 + uNum2; Console.WriteLine(answer1); t++; } else if (Operator == "-") { answer1 = uNum1 - uNum2; Console.WriteLine(answer1); t++; } else if (Operator == "/") { answer1 = uNum1 / uNum2; Console.WriteLine(answer1); t++; } else if (Operator == "x") { answer1 = uNum1 * uNum2; Console.WriteLine(answer1); t++; } else { Console.WriteLine("I'm not sure I'd get that!!!"); } } } Console.WriteLine("Now add 3"); string Addd3 = Console.ReadLine(); if (Addd3 == "c") { Console.WriteLine("Enter the number for which you wanted to use the Calculator for: "); int uNum1 = Convert.ToInt32(Console.ReadLine()); Console.WriteLine("Enter the second number: "); int uNum2 = Convert.ToInt32(Console.ReadLine()); int t = 1; while (t == 1) { Console.WriteLine("type any operator to continue\n +\n -\n /\n x"); string Operator = Console.ReadLine(); int answer1; ; if (Operator == "+") { answer1 = uNum1 + uNum2; Console.WriteLine(answer1); t++; } else if (Operator == "-") { answer1 = uNum1 - uNum2; Console.WriteLine(answer1); t++; } else if (Operator == "/") { answer1 = uNum1 / uNum2; Console.WriteLine(answer1); t++; } else if (Operator == "x") { answer1 = uNum1 * uNum2; Console.WriteLine(answer1); t++; } else { Console.WriteLine("I'm not sure I'd get that!!!"); } } } Console.WriteLine("Now add 17"); string Add17 = Console.ReadLine(); if (Add17 == "c") { Console.WriteLine("Enter the number for which you wanted to use the Calculator for: "); int uNum1 = Convert.ToInt32(Console.ReadLine()); Console.WriteLine("Enter the second number: "); int uNum2 = Convert.ToInt32(Console.ReadLine()); int t = 1; while (t == 1) { Console.WriteLine("type any operator to continue\n +\n -\n /\n x"); string Operator = Console.ReadLine(); int answer1; ; if (Operator == "+") { answer1 = uNum1 + uNum2; Console.WriteLine(answer1); t++; } else if (Operator == "-") { answer1 = uNum1 - uNum2; Console.WriteLine(answer1); t++; } else if (Operator == "/") { answer1 = uNum1 / uNum2; Console.WriteLine(answer1); t++; } else if (Operator == "x") { answer1 = uNum1 * uNum2; Console.WriteLine(answer1); t++; } else { Console.WriteLine("I'm not sure I'd get that!!!"); } } } Console.WriteLine("Time To Reveal the number you thought of using my UltraFlaskouskiyovaskaBlast Power"); Console.ReadLine(); Console.WriteLine("The Answer is....."); Console.ReadLine(); Console.WriteLine("is....."); Console.ReadLine(); Console.WriteLine("57"); Console.ReadLine(); Console.WriteLine("I got it!!!! Yass!!!"); Console.ReadLine(); Console.WriteLine("Hope you enjoyed!!!"); Console.ReadLine(); Console.WriteLine("It's time for me to go!! Take care!! Bye!!!! "); Console.WriteLine(" _________ ________"); Console.WriteLine(" / V \\"); Console.WriteLine("| |"); Console.WriteLine(" \\ /"); Console.WriteLine(" \\ /"); Console.WriteLine(" \\__ __/"); Console.WriteLine(" \\ / "); Console.WriteLine(" \\___ ___/"); Console.WriteLine(" \\/"); Console.WriteLine(""); Console.WriteLine(""); Console.WriteLine(" Thank you!!!"); } } } }
run
|
edit
|
history
|
help
0
Login Silencioso
4x4 ver 3
Problem: fb_series
Watch Jurassic World Dominion Online Free
System Convert
Arrange Hex string in a new one as a byte array declaration
Deadlock Example
adxcsxsd
binary search find minimum
WindowsFormsApp1