Skip to content

Instantly share code, notes, and snippets.

@Strelok78
Last active May 16, 2023 15:32
Show Gist options
  • Save Strelok78/f34f6dd69b01b1b6236bddfd9f5e8d1f to your computer and use it in GitHub Desktop.
Save Strelok78/f34f6dd69b01b1b6236bddfd9f5e8d1f to your computer and use it in GitHub Desktop.
Declaring 10 variables of different types.
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