Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace ConsoleApp1
- {
- class Program
- {
- static void Main(string[] args)
- {
- string Product = Console.ReadLine();
- if ((Product== "banana")|| (Product == "apple")|| (Product == "kiwi")||
- (Product == "cherry")|| (Product == "lemon")||( Product == "grapes"))
- {
- Console.WriteLine("fruit");
- }
- else if ((Product == "tomato")|| (Product == "cucumber")||
- (Product == "pepper")||(Product == "carrot"))
- {
- Console.WriteLine("vegetable");
- }
- else
- {
- Console.WriteLine("unknown");
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment