Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using System.Threading;
- namespace Quiz
- {
- class Program
- {
- static void Main(string[] args)
- {
- Random caso = new Random();
- int risposta;
- Console.WriteLine("\nBenvenuto nel super Quiz!");
- int inizio;
- int tentativi = 0;
- do
- {
- Console.WriteLine("\nsei pronto? \n1 - si \n2 - no");
- inizio = Convert.ToInt32(Console.ReadLine());
- } while (inizio > 2);
- if (inizio == 2)
- {
- System.Environment.Exit(1);
- }
- else
- {
- int qualsiasi = caso.Next(1, 21);
- switch (qualsiasi)
- {
- case 1:
- Console.Write("Da dove viene la parola dicesi? \n1 - Dalla mia bocca \n2 - Dal lavandino di mia zia \n3 - Dal dizionario \n4 - Uso il 50 e 50");
- risposta = Convert.ToInt32(Console.ReadLine());
- switch (risposta)
- {
- case 1:
- tentativi = tentativi++;
- Console.WriteLine("Mmmmm... NO hahahaha! \n Hai perso al" + tentativi + "° tentativo!");
- Thread.Sleep(4000);
- Console.Clear();
- Console.WriteLine("Vuoi riprovare? \n1- si \n2 - no");
- int errore = Convert.ToInt32(Console.ReadLine());
- if (errore == 2)
- {
- System.Environment.Exit(1);
- }
- else
- {
- "deve tornare a int qualsiasi" ;
- }
- }
- break;
- }
- }
- Console.ReadKey();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement