LEARN C# QUICKLY AND JAVASCRIPT CODING PRACTICE EXERCISES: Coding For Beginners by TAM JJ

LEARN C# QUICKLY AND JAVASCRIPT CODING PRACTICE EXERCISES: Coding For Beginners by TAM JJ

Author:TAM, JJ [TAM, JJ]
Language: eng
Format: epub, azw3
Published: 2021-09-07T16:00:00+00:00


if (marks >= 35 )

{

Console.WriteLine("Congrats, you passed in the Exam");

}

}

}

Sample Output1

Please Enter Your Marks

85

Congrats, you passed in the Exam

Sample Output2

Please Enter Your Marks

20

You failed in the Exam. Better luck next time

if-else statement

Syntax:

if(condition){

}

else{

}

If the condition true, then if block code executed, otherwise else block code executed.

Program.cs

using System ;

class Program

{

static void Main ( string [] args)

{

Console.WriteLine("Please Enter Your Marks");



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.