Last active
May 16, 2023 15:32
-
-
Save Strelok78/f34f6dd69b01b1b6236bddfd9f5e8d1f to your computer and use it in GitHub Desktop.
Declaring 10 variables of different types.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
namespace MyApp | |
{ | |
internal class Program | |
{ | |
static void Main(string[] args) | |
{ | |
ushort mana = 100; | |
int enemies = 5; | |
double damage = 3.14; | |
float armor = 3.14f; | |
string name = "String"; | |
char groupLetter = 'C'; | |
long maxLongValue = long.MaxValue; | |
short maxShortValue = short.MaxValue; | |
bool isAlive = False; | |
uint health = 33; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment