Advertisement
Guest User

asda

a guest
Jul 2nd, 2015
206
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.29 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6.  
  7. namespace ASK5
  8. {
  9.     class Program
  10.     {
  11.         static void Main(string[] args)
  12.         {
  13.             ASK5();
  14.         }
  15.         private static void ASK5()
  16.         {
  17.             int num;
  18.             bool thing = true;
  19.             Console.WriteLine("Type 5 Random Numbers & You Will Get Only The Even Numbers Of them!");
  20.             Console.WriteLine("To Leave, Type 'Exit'");
  21.             do
  22.             {
  23.               string word = Console.ReadLine();
  24.                 if(word.ToUpper() == "EXIT")
  25.                 {
  26.                     thing = false;
  27.                 }
  28.                 else if(word.Length < 5)
  29.                 {
  30.                     Console.WriteLine("This is Below 5 Numbers");
  31.                 }
  32.                 else if(word.Length > 5 )
  33.                 {
  34.                     Console.WriteLine("This Is Above 5 Numbers");
  35.                 }
  36.                 else if (word.Length == 5 )
  37.                 {
  38.                     CaculateEven(stock);
  39.                 }
  40.  
  41.             }    
  42.             while (thing) ;
  43.         }
  44.             private static void CaculateEven(stock)
  45.             {
  46.                
  47.             }
  48.         }
  49.     }
  50. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement