C# variables ✖️

Поделиться
HTML-код
  • Опубликовано: 1 дек 2024

Комментарии • 71

  • @BroCodez
    @BroCodez  3 года назад +21

    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 Год назад +29

    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 3 месяца назад +4

    awesome tutorial. I am a 60 year old new programmer from toronto, newcity and really like these tutorials.

  • @elliotradley4370
    @elliotradley4370 2 года назад +20

    This dude is a godsend, I was struggling with C# at college and these vids make it so simple

    • @muhammedsumareh6853
      @muhammedsumareh6853 Год назад +1

      Me too brother

    • @DadicekCz
      @DadicekCz Год назад +5

      Id question your teacher's teaching methods or your attention during class because this is the most basic concept

  • @alex.g7317
    @alex.g7317 2 года назад +7

    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 Год назад +2

      @@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!

  • @LovilJacob
    @LovilJacob 6 месяцев назад +3

    i found programming so hard until i watch Brocode W content bro

  • @thamiresgonncalves
    @thamiresgonncalves 4 месяца назад +1

    Your channel is amazing!!

  • @Foxlaren
    @Foxlaren 3 года назад +4

    Keep it up 👏

  • @ashkelly1565
    @ashkelly1565 10 месяцев назад +1

    4:00 when she's telling you about her checklist in a guy

  • @gabrielmatys5139
    @gabrielmatys5139 Месяц назад

    Dude you expalin it so well

  • @firstlast5350
    @firstlast5350 4 месяца назад +1

    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.

  • @princephillipsashes6443
    @princephillipsashes6443 2 года назад +1

    That's was actually a really good explanation

  • @sandarubandara4437
    @sandarubandara4437 11 месяцев назад +15

    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 8 месяцев назад +3

      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 8 месяцев назад +1

      I was just being silly, broz. Didn't even think anyone would read this

    • @MixDSweep
      @MixDSweep 5 месяцев назад +1

      *have

    • @MixDSweep
      @MixDSweep 5 месяцев назад

      Also after a semicolon (;) the first letter of the next word is not capitilized.

    • @Emtees15
      @Emtees15 3 месяца назад +1

      ​@@MixDSweepwell i think he meant the ":" but you still right in that case 😅

  • @kowshik7941
    @kowshik7941 Год назад

    Sit back! Relax! is much needed BRooo!!

  • @codingdisciple3765
    @codingdisciple3765 Год назад +1

    Bro Code, your amazing, thank you😇

  • @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

  • @CoolCoderCody
    @CoolCoderCody 6 месяцев назад

    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();
    }
    }

  • @merdacast908
    @merdacast908 Год назад

    Cool - lets continue - lets watch

  • @jonlbs7
    @jonlbs7 Год назад +1

    Totally AWESOME tutorials. God Bless You in a special way today :) ✨✨✨✨✨✨👍👍👍👍

  • @woodyramey5820
    @woodyramey5820 Год назад +1

    Fire content!!

  • @gillesherpoel1454
    @gillesherpoel1454 4 месяца назад

    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.

  • @K4vin60
    @K4vin60 10 месяцев назад

    boostin that algorithm 👌

  • @turkyt
    @turkyt 3 месяца назад

    ❤❤ 1:40

  • @TommySutherland-ry2cp
    @TommySutherland-ry2cp 7 месяцев назад

    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?

  • @hansborsigue3566
    @hansborsigue3566 3 месяца назад

    awesome

  • @viniciuslima1064
    @viniciuslima1064 28 дней назад

    Thanks, bro

  • @manikghosh3141
    @manikghosh3141 3 месяца назад

    7:36 why is his string data type different than ours ???
    I use string he used String.

  • @spartanranger
    @spartanranger 3 года назад

    Thanks for the video Bro

  • @WickedJackThe1
    @WickedJackThe1 Год назад

    You're the best!

  • @symamillo8535
    @symamillo8535 3 года назад

    Big Ups Bro

  • @designnimbus
    @designnimbus Год назад

    I came to learn c# from this channel after purchasing more than 10 udemy courses 🤣😂

  •  3 года назад

    Thanks!

  • @kiprotichedwin777
    @kiprotichedwin777 9 месяцев назад

    so good

  • @hanumansoni3442
    @hanumansoni3442 5 месяцев назад

    W

  • @axlecode8598
    @axlecode8598 2 года назад

    👍

  • @Umgrut
    @Umgrut Год назад

    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 10 месяцев назад +3

      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.

  • @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

  • @budderrar5751
    @budderrar5751 2 года назад

    noice

  • @Perndoe
    @Perndoe 5 месяцев назад

    double height = true; would double my height

  • @simik4830
    @simik4830 2 месяца назад

    comment for algorithm!

  • @MarkTheCuber
    @MarkTheCuber Год назад

    for anyone wondering, 300.5 cm is just under 10 feet😂

  • @purpleguy2281
    @purpleguy2281 3 месяца назад

    5:22 are you sure you're alive? just in case

  • @ZeeWolfed
    @ZeeWolfed 2 года назад

    hello thanks mate

  • @whitedinamo
    @whitedinamo 2 года назад

    lesson check😇

  • @foamyzmusic
    @foamyzmusic 2 года назад +2

    666k Subscribers lol.

  • @movieworld812
    @movieworld812 6 месяцев назад

    Your height is WHAT?

  • @deku_midoriya7014
    @deku_midoriya7014 2 года назад +1

    you are really tall lol

  • @definitelynotchris4776
    @definitelynotchris4776 2 месяца назад

    algorithm

  • @crazytheorist118
    @crazytheorist118 11 месяцев назад

    oiia

  • @boran5486
    @boran5486 10 месяцев назад

    you got big cojones

  • @memy4460
    @memy4460 2 года назад

    Comment

  • @underthetree5783
    @underthetree5783 Год назад

    i hate frogs

  • @dq9342
    @dq9342 2 года назад +1

    thanks 🤨 from this face to this face😊 - Console.Beep();

  •  3 года назад +1

    Thanks!