<div *ngIf="!show">
<div>show is false</div>
</div>
<div *ngIf="show">
<div>show is ture</div>
</div>
var age=20;
if (age < 18) {
console.log("underage");
} else {
console.log("let em in!");
}
int age = 30;
if(age >= 30 && age <= 80){
System.out.println("Old");
}else if(age < 30 && >= 1){
System.out.println("Young");
}else{
System.out.println("Not Supported");
}
var a = prompt("value 1")
var b = prompt("value 2")
var c = prompt("value 3")
var d = prompt("value 4")
var e = prompt("value 5")
if (a >= b && a >= c && a >= d && a >= e) {
console.log(a + " this is greater value")
}
else if (b >= a && b >= c && b >= d && b >= e) {
console.log(b + " this is greater value")
}
else if (c >= a && c >= b && c >= d && c >= e) {
console.log(c + " this is greater value")
}
else if (d >= a && d >= b && d >= c && d >= e ) {
console.log(d + " this is greater value")
}
else if(e >= a && e >= b && e >= c && e >= d){
console.log(e + " this is greater value")
}
else{"enter the valid number"}
if (condition is) {
true, do this
} else {
false, do this
}
var age = prompt("enter your age")
if (age>= 60){
console.log("you are older")
}
else if (age >=18){
console.log("you are adult")
}
else if (age < 18){
console.log("you are child")
}
int x = 30;
int y = 40;
if(y>x)
{
System.out.print("x is greater than y");
}
else
{
System.out.print("x is not greater than y");
}
int num = 5;
if (n > 0) {
System.out.println("This is a positive number")
}
To learn about Java if else statement visit website:
https://www.allaboutjava.com/2021/07/java-if-else-statements.html
using System;
class NumbersNotDivisibleBy3And7
{
static void Main()
{
Console.WriteLine("Enter an integer:");
int n = int.Parse(Console.ReadLine());
for (int i = 1; i <= n; i++)
{
if (i % 3 != 0 && i % 7 != 0)
{
Console.Write("{0} ", i);
}
}
Console.WriteLine();
}
}
print("Idk")
driver = webdriver.Firefox()
var a = prompt("Enter s for squareEnter t for triangle")
if (a=="s", a=="S"){
var side = prompt("enter the value")
var b = side *side;
console.log(b,"this is square area")
}
else if(a=="t", a=="T"){
var base = prompt("enter the base value")
// base = 1/2;
var height = prompt("enter the height")
area=1/2*base*height;
console.log(area,"this is the area of triangle")
}
else{console.log("invalid input")};
gbgnh
Code Example |
---|
Html :: display date on html |
Html :: hmtl image import |
Html :: skip line html |
Html :: href tag in html |
Html :: anchor html |
Html :: cambiar src jquery |
Html :: html vertical text in table cell |
Html :: checkbox html style |
Html :: The <input Element |
Html :: Disabled href tag |
Html :: tradingview lightweight charts cdn |
Html :: boostrap input tag |
Html :: div symbol latex |
Html :: shoppy embed |
Html :: click on tr redirect new page |
Html :: xpath select td class contains text |
Html :: html textarea auto height to amount of text |
Html :: tailwind css width 50 percent |
Html :: html default arrow remove |
Html :: anchor tag background image html |
Html :: html tooltip |
Html :: coloums html |
Html :: how to create bold text in html |
Html :: html timed hide |
Html :: nuxt i18n link |
Html :: <!---- html |
Html :: add current date in report odoo |
Html :: table title html |
Html :: bootstrap 4 flex |
Html :: tailwind danger text |