What do you want to save?
Add Code snippet
New code examples
-
Java 2021-11-09 06:39:15
Java program to find largest in three numbers using ternary operator
// Java program to find smallest of three numbers using ternary operator import java.util.Scanner; public class SmallestOfThreeNumbers { public static void main(String[] args) { int number1, number2, number3, smallest, temp; Scanner sc... Add solution -
C# 2021-09-03 07:25:01
ternary operator in c#
/* In C#, if condition is true, the first expression is evaluated and becomes the result; if false, the second expression is evaluated and becomes the result. */ // The syntax of ternary operator is: Condition ? Expression1 : Expression2; // Here... Add solution