- 1
I'm just a beginner so plz help me
10 odpowiedzi
+ 2
college learnings r totally basics of subject and to develop understandings in students. although some students achieve some good knowledge in college. if u r a fresher better don't worry too much all have gone through this.just learn from what u see here. I understand in start u will gain less but after some times it would be easy.
also here I saw very helpful people so u can always post where u face problems.
+ 1
what help u need? old share with details
+ 1
Since your tags are c# and input, I assume you don't know how to read user input. You need to be more specific, also on SoloLearn C# course you learn all that.
if you want to read a string it goes as follows, you can also copy paste this into your project inside the Main method:
//Asks for user input
Console.WriteLine("Write something that you feel like:");
//Reads the string and stores it into a string variable called str
string str = Console.ReadLine();
//Asks the user to put in a number
Console.WriteLine("Now write any number");
/*stores input in an integer called integer. int.Parse function is needed to convert the input string into an Integer*/
int integer = int.Parse(Console.ReadLine());
/*Outputs the string: str and int: integer \n means next lines and .ToString() method is needed to assure there are no error when trying to print an Integer, we make it actually to a string*/
Console.WriteLine("Your string is: " + str + "\nand your number is: " + integer.ToString() );
//Used to read the console, otherwise it would just close immediately
Console.ReadLine();
+ 1
Void Main is the entrance point of every console application, that's why it needs to be there. Don't worry too much what it actually means. Go through the C# course and you'll find yourself making very fast progress. Also if you haven't done yet, I would recommend you to download Visual Studio.
0
What you need help with?
0
I don't knw any of the basics
0
Sir I'm very confused Abt programmes Which I have learnt in my clg nd which I have learning here
0
Sir why we use #include,void main ()
0
thank you sir
0
// this is a comment. thisonly effects one line
/*this is a bigger comment. It effects multiple lines/*