Computer Science
Rewrite the following statement using if-else:
s = (a + b < c || a + c <= b || b + c <= a) ? "Triangle is not possible": "Triangle is possible";
Related Questions
Rewrite the following statement using if-else:
commission=(sale > 5000) ? sale*10/100 : 0;
Rewrite the following statement using if-else:
net=(salary > 10000) ? salary — (8.33/100)*salary : salary — (5/100)*salary;
Rewrite the following statement using if-else:
c = (x >= 'A' && x <= 'Z') ? "Upper Case Letter": "Lower Case Letter";
Rewrite the following for loop by using while and do-while loops:
for(i=1,j=1;i<=10;i++,j++) { System.out.println(i*j); }