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 / 4. Even Powers of 2 (Second Solution)
Created January 21, 2023 00:28
Even Powers of 2 - For Loop - Lab
using System;
using System.Diagnostics.Tracing;
namespace EvenPowersOf_2
{
internal class Program
{
static void Main(string[] args)
{
int n = int.Parse(Console.ReadLine());
@IvanITD
IvanITD / 4. Even Powers of 2 (First Solution)
Last active January 21, 2023 00:25
Even Powers of 2 - For Loop - Lab
using System;
using System.Diagnostics.Tracing;
namespace EvenPowersOf_2
{
internal class Program
{
static void Main(string[] args)
{
int n = int.Parse(Console.ReadLine());
@IvanITD
IvanITD / 3. Numbers 1...N with Step 3 - (Simple Solution)
Created January 17, 2023 21:24
Numbers 1...N with Step 3 - For Loop - Lab
using System;
namespace Numbers_1_N_WithStep_3
{
internal class Program
{
static void Main(string[] args)
{
int n = int.Parse(Console.ReadLine());
@IvanITD
IvanITD / 2. Numbers N...1 - (Newer Solution)
Created January 17, 2023 21:16
Numbers N...1 - For Loop - Lab
using System;
namespace Numbers_N_1
{
internal class Program
{
static void Main(string[] args)
{
for (int number = int.Parse(Console.ReadLine()); number >= 1; number--)
{
@IvanITD
IvanITD / 2. Numbers N...1 - (Simple Solution)
Created January 17, 2023 21:14
Numbers N...1 - For Loop - Lab
using System;
namespace Numbers_N_1
{
internal class Program
{
static void Main(string[] args)
{
int n = int.Parse(Console.ReadLine());
@IvanITD
IvanITD / 1. Numbers From 1 To 100
Created January 17, 2023 20:42
Numbers From 1 To 100 - For Loop - Lab
using System;
namespace Numbers_From_1_To_100
{
internal class Program
{
static void Main(string[] args)
{
for (int numbers = 1; numbers <= 100; numbers++)
{
@IvanITD
IvanITD / 09. Ski Trip
Created January 15, 2023 13:41
Ski Trip - Conditional Statements Advanced - Exercise
using System;
namespace SkiTrip
{
internal class Program
{
static void Main(string[] args)
{
int stayDays = int.Parse(Console.ReadLine());
string placeType = Console.ReadLine();
@IvanITD
IvanITD / 08. On Time for the Exam
Created January 15, 2023 13:40
On Time for the Exam - Conditional Statements Advanced - Exercise
using System;
namespace OnTimeForTheExam
{
internal class Program
{
static void Main(string[] args)
{
int examHour = int.Parse(Console.ReadLine());
int examMinutes = int.Parse(Console.ReadLine());
@IvanITD
IvanITD / 07. Hotel Room
Created January 10, 2023 22:52
Hotel Room - Conditional Statements Advanced - Exercise
using System;
using System.Text;
namespace HotelRoom
{
internal class Program
{
static void Main(string[] args)
{
string month = Console.ReadLine();
@IvanITD
IvanITD / 06. Operations Between Numbers
Created January 3, 2023 21:20
Operations Between Numbers - Conditional Statements Advanced - Exercise
using System;
namespace OperationsBetweenNumbers
{
internal class Program
{
static void Main(string[] args)
{
double N1 = double.Parse(Console.ReadLine());
double N2 = double.Parse(Console.ReadLine());