C# Tutorial part 5 if else statement


Now lets start over first application in C#.



Step 1:

Goto the search manu and start your visual studio...



Step 2:





  • Click on new program
  • Select language as visual c#
  • Select Console application
  • Name that application 
  • And click on next
                           



Step 3:



  • Write that code on your window screen
  • Then right click on project solution tab
  • And built the project
  • Then Start Debugging 







Then output window will be shown.... if the statement is true ...

otherwise value is not 5 will be shown in the output as it is in else statement...








Feature Video :








                                                Thank You!

1 Comments

Post a Comment

Previous Post Next Post