In this tutorial we are developing a "simple quiz application" using C# and .NET. In this tutorial we have taken 5 windows forms namely Form1,Form2,Form3,Form4 and Result for
Home
conditionals
Showing posts with label conditionals. Show all posts
Showing posts with label conditionals. Show all posts
C#: Conditionals & Control Flow #2
Till now in Conditionals & Control Flow we have learn't Operators,Operands,Expression, the if statement, if...else statement and
C#: Conditionals & Control Flow
Sometimes we'll want our programs to respond differently depending on user's choice.
Control flow is a way of telling our program which statements
C# : Program to check between three numbers which is the greater one
In this simple C# tutorial check between three numbers which is the greater one. Here we take "float" datatype, you can also take "int" or "double" datatype too depending on the number entered by the user. Here we are taking three variables "num1" for number one and "num2" for number two and "num3" for number three. To check greater number we are taking "if-else" condition statement. Now, lets get started!!
C# : Program to check between two numbers which is the greater one
In this simple C# tutorial check between two numbers which is the greater one. Here we take "float" datatype, you can also take "int" or "double" datatype too depending on the number entered by the user. Here we are taking two variables "num1" for number one and "num2" for number two. To check greater number we are taking "if-else" condition statement.
C# : Program to check whether number is even or odd
In this simple C# tutorial we check whether number entered by the user is even or odd. Here we take "float" datatype, you can also take "int" or "double" datatype too depending on the number entered by the user and variable "num" for the number entered by the user. To check whether the no is even or odd we were taking "if-else" condition statement.
Subscribe to:
Posts
(
Atom
)