Skip to content

Instantly share code, notes, and snippets.

View IvanITD's full-sized avatar
“Building the future, one line of code at a time.”

Ivan Ivanov IvanITD

“Building the future, one line of code at a time.”
View GitHub Profile
@IvanITD
IvanITD / 11. Fruit Shop (Switch Construction)
Created December 8, 2022 21:27
Fruit Shop - Conditional Statements Advanced - Lab
using System;
namespace FruitShop_Switch_
{
internal class Program
{
static void Main(string[] args)
{
string fruit = Console.ReadLine();
string weekDay = Console.ReadLine();
@IvanITD
IvanITD / 11. Fruit Shop (If Construction)
Created December 8, 2022 20:48
Fruit Shop - Conditional Statements Advanced - Lab
using System;
namespace FruitShop
{
internal class Program
{
static void Main(string[] args)
{
string fruit = Console.ReadLine();
string weekDay = Console.ReadLine();
@IvanITD
IvanITD / 10. Invalid Number (Bool Solution)
Created December 8, 2022 09:57
Invalid Number - Conditional Statements Advanced - Lab
using System;
namespace InvalidNumber
{
class Program
{
static void Main(string[] args)
{
int num = int.Parse(Console.ReadLine());
@IvanITD
IvanITD / 10. Invalid Number
Created December 8, 2022 09:55
Invalid Number - Conditional Statements Advanced - Lab
using System;
namespace Invalid_Number
{
internal class Program
{
static void Main(string[] args)
{
int number = int.Parse(Console.ReadLine());
@IvanITD
IvanITD / 9. Fruit or Vegetable (Switch Construction)
Created December 8, 2022 09:20
Fruit or Vegetable - Conditional Statements Advanced - Lab
using System;
namespace FruitOrVegetable_Switch_
{
internal class Program
{
static void Main(string[] args)
{
string product = Console.ReadLine();
@IvanITD
IvanITD / 9. Fruit or Vegetable (If Construction)
Created December 8, 2022 09:10
Fruit or Vegetable - Conditional Statements Advanced - Lab
using System;
namespace FruitOrVegetable_If_
{
internal class Program
{
static void Main(string[] args)
{
string product = Console.ReadLine();
@IvanITD
IvanITD / 8. Cinema Tickets (Switch Construction)
Created December 8, 2022 00:38
Cinema Tickets - Conditional Statements Advanced - Lab
using System;
namespace CinemaTicket_Switch
{
internal class Program
{
static void Main(string[] args)
{
string weekDay = Console.ReadLine();
@IvanITD
IvanITD / 8. Cinema Ticket (If Construction)
Created December 8, 2022 00:26
Cinema Ticket - Conditional Statements Advanced - Lab
using System;
namespace CinemaTicket
{
internal class Program
{
static void Main(string[] args)
{
string weekDay = Console.ReadLine();
@IvanITD
IvanITD / 7. Working Hours (Long Solution)
Created December 8, 2022 00:14
Working Hours - Conditional Statements Advanced - Lab
using System;
namespace WorkingHours
{
internal class Program
{
static void Main(string[] args)
{
int dayHour = int.Parse(Console.ReadLine());
string weekDay = Console.ReadLine();
@IvanITD
IvanITD / 7. Working Hours (Short Solution)
Created December 8, 2022 00:12
Working Hours - Conditional Statements Advanced - Lab
using System;
namespace WorkingHours
{
class Program
{
static void Main(string[] args)
{
int hour = int.Parse(Console.ReadLine());
string weekDay = Console.ReadLine();