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(); } } }
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
@@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 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.
@@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!
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.
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
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
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(); } }
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?
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?
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.
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.
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();
}
}
}
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
awesome tutorial. I am a 60 year old new programmer from toronto, newcity and really like these tutorials.
This dude is a godsend, I was struggling with C# at college and these vids make it so simple
Me too brother
Id question your teacher's teaching methods or your attention during class because this is the most basic concept
this is fantastic!
These are much less confusing than the official c# tutorials!
wdym official tutorials?
@@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 :/
@@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?
@@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.
@@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!
i found programming so hard until i watch Brocode W content bro
Your channel is amazing!!
Keep it up 👏
4:00 when she's telling you about her checklist in a guy
Dude you expalin it so well
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.
That's was actually a really good explanation
Talking about pizza, here's a fun fact; Those who say pineapples don't belong in pizza, has never tried them with pizza.
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
I was just being silly, broz. Didn't even think anyone would read this
*have
Also after a semicolon (;) the first letter of the next word is not capitilized.
@@MixDSweepwell i think he meant the ":" but you still right in that case 😅
Sit back! Relax! is much needed BRooo!!
Bro Code, your amazing, thank you😇
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
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();
}
}
Cool - lets continue - lets watch
Totally AWESOME tutorials. God Bless You in a special way today :) ✨✨✨✨✨✨👍👍👍👍
Fire content!!
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.
boostin that algorithm 👌
❤❤ 1:40
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?
awesome
Thanks, bro
7:36 why is his string data type different than ours ???
I use string he used String.
Thanks for the video Bro
You're the best!
Big Ups Bro
I came to learn c# from this channel after purchasing more than 10 udemy courses 🤣😂
Thanks!
so good
W
👍
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?
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.
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.
you need to press the green filled button not the empty one
noice
double height = true; would double my height
comment for algorithm!
for anyone wondering, 300.5 cm is just under 10 feet😂
5:22 are you sure you're alive? just in case
hello thanks mate
lesson check😇
666k Subscribers lol.
Your height is WHAT?
you are really tall lol
algorithm
oiia
you got big cojones
Comment
i hate frogs
thanks 🤨 from this face to this face😊 - Console.Beep();
Thanks!