generated from admin/template
Added Laboratory 1 works
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
using System;
|
||||
namespace HelloWorldApplication
|
||||
{
|
||||
class HelloWorld
|
||||
{
|
||||
static void Main(string[] args)
|
||||
{
|
||||
string pokemonName = "Charmander";
|
||||
string elementType = "Fire";
|
||||
int level = 1;
|
||||
int hp = 95;
|
||||
Console.WriteLine("=== POKEMON DATABASE ===");
|
||||
Console.WriteLine($"Pokemon: {pokemonName}");
|
||||
Console.WriteLine($"Element: {elementType}");
|
||||
Console.WriteLine($"Level: {level} | HP: {hp}");
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
using System;
|
||||
|
||||
class Program {
|
||||
static void Main() {
|
||||
Console.WriteLine("Enter couch name:");
|
||||
string couchName = Console.ReadLine();
|
||||
Console.WriteLine("Enter pokemon name:");
|
||||
string pokemonName = Console.ReadLine();
|
||||
Console.WriteLine("Enter element:");
|
||||
string elementType = Console.ReadLine();
|
||||
Console.WriteLine("Enter region:");
|
||||
string regionName = Console.ReadLine();
|
||||
|
||||
Console.WriteLine("****************************************");
|
||||
Console.WriteLine("POKEMON PASSPORT");
|
||||
Console.WriteLine($"Couch: {couchName}(Region: {regionName})");
|
||||
Console.WriteLine($"Pokemon: {pokemonName}[Element: {elementType}]");
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,46 @@
|
||||
using System;
|
||||
|
||||
class Program {
|
||||
static void Main() {
|
||||
Console.WriteLine("Enter stage name:");
|
||||
string stage = Console.ReadLine();
|
||||
Console.WriteLine("Enter pokemon name:");
|
||||
string name = Console.ReadLine();
|
||||
Console.WriteLine("Enter category:");
|
||||
string category= Console.ReadLine();
|
||||
Console.WriteLine("Enter first attack name:");
|
||||
string attack1Name = Console.ReadLine();
|
||||
Console.WriteLine("Enter first attack effect:");
|
||||
string attack1Desc = Console.ReadLine();
|
||||
Console.WriteLine("Enter second attack name:");
|
||||
string attack2Name = Console.ReadLine();
|
||||
Console.WriteLine("Enter second attack effect:");
|
||||
string attack2Desc = Console.ReadLine();
|
||||
Console.WriteLine("Enter pokemon weakness:");
|
||||
string weakness = Console.ReadLine();
|
||||
Console.WriteLine("Enter pokemon resistance:");
|
||||
string resistance = Console.ReadLine();
|
||||
int hp = 60;
|
||||
int number = 25;
|
||||
double height = 0.4;
|
||||
double weight = 6.0;
|
||||
int attack2Damage = 20;
|
||||
int retreatCost = 1;
|
||||
|
||||
Console.WriteLine("=======================================================");
|
||||
Console.WriteLine($"[Base] {name} HP: {hp}");
|
||||
Console.WriteLine("-------------------------------------------------------");
|
||||
Console.WriteLine($"# {number}| Kind: {category}| Height: {height}| Weight: {weight}");
|
||||
Console.WriteLine("-------------------------------------------------------");
|
||||
Console.WriteLine($"[Attack 1] {attack1Name}");
|
||||
Console.WriteLine($"Effect {attack1Desc}");
|
||||
Console.WriteLine($"[Attack 2] {attack2Name} Damage: {attack2Damage}");
|
||||
Console.WriteLine($"Effect {attack2Desc}");
|
||||
Console.WriteLine("-------------------------------------------------------");
|
||||
Console.WriteLine($"Weakness: {weakness}");
|
||||
Console.WriteLine($"Resistance: {resistance}");
|
||||
Console.WriteLine($"retreat: {retreatCost}");
|
||||
Console.WriteLine("=======================================================");
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user