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;
- namespace ASK5
- {
- class Program
- {
- static void Main(string[] args)
- {
- ASK5();
- }
- private static void ASK5()
- {
- int num;
- bool thing = true;
- Console.WriteLine("Type 5 Random Numbers & You Will Get Only The Even Numbers Of them!");
- Console.WriteLine("To Leave, Type 'Exit'");
- do
- {
- string word = Console.ReadLine();
- if(word.ToUpper() == "EXIT")
- {
- thing = false;
- }
- else if(word.Length < 5)
- {
- Console.WriteLine("This is Below 5 Numbers");
- }
- else if(word.Length > 5 )
- {
- Console.WriteLine("This Is Above 5 Numbers");
- }
- else if (word.Length == 5 )
- {
- CaculateEven(stock);
- }
- }
- while (thing) ;
- }
- private static void CaculateEven(stock)
- {
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement