Тёмный

C# variables ✖️ 

Bro Code
Подписаться 2,1 млн
Просмотров 49 тыс.
50% 1

C# variables tutorial example explained
#C #variables #tutorial
using System;
namespace MyFirstProgram
{
class Program
{
static void Main(string[] args)
{
int x; // declaration
x = 123; // initialization
int y = 321; // declaration + initialization
int z = x + y;
int age = 21; // whole integer
double height = 300.5; // decimal number
bool alive = false; //true or false
char symbol = '@'; // single character
String name = "Bro"; // a series of characters
Console.WriteLine("Hello " + name);
Console.WriteLine("Your age is " + age);
Console.WriteLine("Your height is " + height + "cm");
Console.WriteLine("Are you alive? " + alive);
Console.WriteLine("Your symbol is: " + symbol);
String userName = symbol + name;
Console.WriteLine("Your username is: " + userName);
Console.ReadKey();
}
}
}

Опубликовано:

 

15 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 67   
@BroCodez
@BroCodez 3 года назад
using System; namespace MyFirstProgram { class Program { static void Main(string[] args) { int x; // declaration x = 123; // initialization int y = 321; // declaration + initialization int z = x + y; int age = 21; // whole integer double height = 300.5; // decimal number bool alive = false; // true or false char symbol = '@'; // single character String name = "Bro"; // a series of characters Console.WriteLine("Hello " + name); Console.WriteLine("Your age is " + age); Console.WriteLine("Your height is " + height + "cm"); Console.WriteLine("Are you alive? " + alive); Console.WriteLine("Your symbol is: " + symbol); String userName = symbol + name; Console.WriteLine("Your username is: " + userName); Console.ReadKey(); } } }
@ronjohnson123
@ronjohnson123 Год назад
as someone with a low attention span i find it much easier to focus & retain info on all these short 10min videos compared to the 12 hour long ones crammed full of information! great work
@HistoricalHorizonsT
@HistoricalHorizonsT Месяц назад
awesome tutorial. I am a 60 year old new programmer from toronto, newcity and really like these tutorials.
@elliotradley4370
@elliotradley4370 Год назад
This dude is a godsend, I was struggling with C# at college and these vids make it so simple
@muhammedsumareh6853
@muhammedsumareh6853 Год назад
Me too brother
@DadicekCz
@DadicekCz Год назад
Id question your teacher's teaching methods or your attention during class because this is the most basic concept
@LovilJacob
@LovilJacob 3 месяца назад
i found programming so hard until i watch Brocode W content bro
@alex.g7317
@alex.g7317 Год назад
this is fantastic! These are much less confusing than the official c# tutorials!
@sempiternal_futility
@sempiternal_futility Год назад
wdym official tutorials?
@alex.g7317
@alex.g7317 Год назад
@@sempiternal_futility when you click the ‘help’ button on visual studio, you get taken to a website about it. I don’t entirely know how it works, but I know my dad somehow found official videos from Microsoft about it :/
@sempiternal_futility
@sempiternal_futility Год назад
@@alex.g7317 oh damn... i dont use visual studio, but i will take a look at it btw, how's your code journey doing? what have you built so far?
@alex.g7317
@alex.g7317 Год назад
@@sempiternal_futility nothing. But now my dad promised to help with a GMTK tutorial in Unity! I mean I remember long ago before this video I made a game where you roll a ball that collects things, but I just copied the guy on the screen, I mean I can’t even remember what I typed. Honestly coding feels like playing with fire. I know nothing about computing whatsoever, and some tutorials feel too fragile, like if I make one small mistake, it could make me lose my rhythm, or they don’t tell me what to do if I do, so I end up starting over. That’s why I don’t do 2D unity tutorials, because most of it involves the Asset Store, and the big problem is putting the assets into the game because it introduces me to a lot of new buttons that they just ignore and don’t bring up whatsoever. When doing that I feel like a bull in a china shop, because they won’t tell me what to do if I accidentally knock over a porcelain vase.
@sempiternal_futility
@sempiternal_futility Год назад
@@alex.g7317 did you try building a game 100% by yourself? ( by that i mean without following a step-by-step tutorial ) building things is the best way to learn, so just keep building them!
@sandarubandara4437
@sandarubandara4437 8 месяцев назад
Talking about pizza, here's a fun fact; Those who say pineapples don't belong in pizza, has never tried them with pizza.
@NeesooGaming
@NeesooGaming 6 месяцев назад
I have and I’m Italian and it was disgusting no offences to the pineapple people I have nothing against you guys but everything against pineapple on pizza
@sandarubandara4437
@sandarubandara4437 5 месяцев назад
I was just being silly, broz. Didn't even think anyone would read this
@Frendzf
@Frendzf 3 месяца назад
*have
@Frendzf
@Frendzf 3 месяца назад
Also after a semicolon (;) the first letter of the next word is not capitilized.
@Emtees15
@Emtees15 Месяц назад
​@@Frendzfwell i think he meant the ":" but you still right in that case 😅
@jonlbs7
@jonlbs7 Год назад
Totally AWESOME tutorials. God Bless You in a special way today :) ✨✨✨✨✨✨👍👍👍👍
@Foxlaren
@Foxlaren 3 года назад
Keep it up 👏
@thamiresgonncalves
@thamiresgonncalves 2 месяца назад
Your channel is amazing!!
@gillesherpoel1454
@gillesherpoel1454 2 месяца назад
Giving up my programming because of a burnout, you are helping me picking up my pace again. Thank you so much BroCode you are god sent.
@princephillipsashes6443
@princephillipsashes6443 2 года назад
That's was actually a really good explanation
@firstlast5350
@firstlast5350 Месяц назад
If only it were that simple. When trying to transfer my program from pascal to c# win app, seemed to need things like: static, private, new . . . with the variables. Got it running in the end but didn't really know what I was doing.
@ashkelly1565
@ashkelly1565 7 месяцев назад
4:00 when she's telling you about her checklist in a guy
@woodyramey5820
@woodyramey5820 Год назад
Fire content!!
@kowshik7941
@kowshik7941 Год назад
Sit back! Relax! is much needed BRooo!!
@codingdisciple3765
@codingdisciple3765 Год назад
Bro Code, your amazing, thank you😇
@merdacast908
@merdacast908 10 месяцев назад
Cool - lets continue - lets watch
@hansborsigue3566
@hansborsigue3566 28 дней назад
awesome
@zedch96
@zedch96 Год назад
I learnt a little bit of java then switched to c# cause i wanna be a game dev in unity and WOW the similarities of java and c# code is Insane im very Surprised how same it is
@K4vin60
@K4vin60 7 месяцев назад
boostin that algorithm 👌
@kiprotichedwin777
@kiprotichedwin777 6 месяцев назад
so good
@turkyt
@turkyt Месяц назад
❤❤ 1:40
@TommySutherland-ry2cp
@TommySutherland-ry2cp 5 месяцев назад
Love this video but for some reason when I followed along, I could not get my symbol or "Hey Bro" to display in the output console. Even after I copy and pasted the code you typed in the description. Did just update and download almost every package available for Visual Studio too. Maybe I have conflicting hubs/extensions?
@spartanranger
@spartanranger 3 года назад
Thanks for the video Bro
@hanumansoni3442
@hanumansoni3442 3 месяца назад
W
@WickedJackThe1
@WickedJackThe1 Год назад
You're the best!
@symamillo8535
@symamillo8535 3 года назад
Big Ups Bro
3 года назад
Thanks!
@manikghosh3141
@manikghosh3141 15 дней назад
7:36 why is his string data type different than ours ??? I use string he used String.
@Umgrut
@Umgrut 10 месяцев назад
A beginner here. If "Double" can store numbers with decimals while "Int" doesn't, why use Int at all and not just use Double just in case? Same goes for Char and String. You could just use String with a single character right? What is the advantage of Char over String?
@tubetimeline
@tubetimeline 7 месяцев назад
Hi Umgrut. There is a memory cost for using a more inclusive datatype. If you might need the extra letters or a decimal for sure use String or double, but if not, it's a bit more elegant and memory easing to using char or int.
@designnimbus
@designnimbus Год назад
I came to learn c# from this channel after purchasing more than 10 udemy courses 🤣😂
@CodyLovesVR
@CodyLovesVR 4 месяца назад
Cool thing I made using System; namespace Program; internal class Program { static void Main(string[] args) { int Age = 43; //How old u are int been = 38; // How many days it's been sice your birthday int days = Age * 365 + been; // Calculating the amount of days you've lived Console.WriteLine("You have lived for " + days); Console.WriteLine("days"); Console.ReadKey(); } }
@foamyzmusic
@foamyzmusic Год назад
666k Subscribers lol.
@FukSN
@FukSN Год назад
Bro! 👍
@axlecode8598
@axlecode8598 Год назад
👍
@budderrar5751
@budderrar5751 Год назад
noice
@Perndoe
@Perndoe 2 месяца назад
double height = true; would double my height
@ZeeWolfed
@ZeeWolfed Год назад
hello thanks mate
@purpleguy2281
@purpleguy2281 22 дня назад
5:22 are you sure you're alive? just in case
@deku_midoriya7014
@deku_midoriya7014 2 года назад
you are really tall lol
@MarkTheCuber
@MarkTheCuber 10 месяцев назад
for anyone wondering, 300.5 cm is just under 10 feet😂
@whitedinamo
@whitedinamo 2 года назад
lesson check😇
@JetSetDex
@JetSetDex 2 года назад
No matter what I do after the numbers it keeps bringing up 123 321 444. I eve copy and pasted the code in the description to check and it still stayed the same.
@velpr22
@velpr22 Год назад
you need to press the green filled button not the empty one
@movieworld812
@movieworld812 3 месяца назад
Your height is WHAT?
@crazytheorist118
@crazytheorist118 8 месяцев назад
oiia
@boran5486
@boran5486 7 месяцев назад
you got big cojones
@memy4460
@memy4460 2 года назад
Comment
@underthetree5783
@underthetree5783 Год назад
i hate frogs
@dq9342
@dq9342 Год назад
thanks 🤨 from this face to this face😊 - Console.Beep();
3 года назад
Thanks!
Далее
C# constants π
1:04
Просмотров 33 тыс.
C# type casting 💱
7:15
Просмотров 49 тыс.
MINECRAFT CREPPER EXPLODES SHARK PUPPET!
00:15
Просмотров 7 млн
Сколько стоят роды мечты?
00:59
Просмотров 883 тыс.
@HolyBaam ультанул в конце 🧨
00:34
Просмотров 296 тыс.
C# methods 📞
6:05
Просмотров 53 тыс.
C# enums 🪐
7:07
Просмотров 70 тыс.
Learn C# Sharp in Four Minutes
4:10
Просмотров 106 тыс.
C# Lists 📃
6:46
Просмотров 103 тыс.
Learn C# with these 9 LINES OF CODE - Unity Tutorial!
25:16
C# string methods 🔤
6:52
Просмотров 38 тыс.
C# constructors 👷
5:44
Просмотров 80 тыс.
How to Program in C# - BASICS (E01)
11:48
Просмотров 1,4 млн
C# objects 🧍‍♂️
5:01
Просмотров 46 тыс.