About 20,100 results
Open links in new tab
  1. Write a program to input the distance covered and calculate the Amount paid by the passenger. The program displays the printed bill with the details given below: Taxi No. _____ Distance covered _____ Amount _____ import java.util.*; class Taxi { …

  2. Chapter 9: Conditional Constructs in Java - KnowledgeBoat

    Write a program in Java to compute the perimeter and area of a triangle, with its three sides given as a, b, and c using the following formulas: \text {Perimeter} = a + b + c Perimeter=a+b+c. \text {Area} = \sqrt {s (s - a) (s - b) (s - c)} Area=s(s−a)(s−b)(s−c)

  3. Chapter 7 – Statements, Scope – Self Study Notes

    Jun 18, 2024 · Conditional statements allow your program to make decisions based on certain conditions. They enable you to execute different blocks of code depending on whether a condition is true or false. The most commonly used conditional statements are …

  4. Conditional Statements in Java

    Java’s if statement helps us to do the same thing in our programs i.e. if statement helps to execute a set of statements based on certain conditions. In its most simple form, if statement is written like this: statement; The if statement will test the condition. If condition is true, then statement is executed.

  5. Decision Making in Java (if, if-else, switch, break, continue, jump)

    Apr 16, 2025 · Decision-making statements in Java execute a block of code based on a condition. Decision-making in programming is similar to decision-making in real life. In programming, we also face situations where we want a certain block of code to be executed when some condition is …

  6. Avichal solutions for Computer Applications [English] Class 10 ICSE ...

    Using Avichal Computer Applications [English] Class 10 ICSE solutions Conditional Statements in Java exercise by students is an easy way to prepare for the exams, as they involve solutions arranged chapter-wise and also page-wise.

  7. Conditional Statements in Programming | Definition, Types, Best ...

    Sep 18, 2024 · Conditional statements in Programming, also known as decision-making statements, allow a program to perform different actions based on whether a certain condition is true or false. They form the backbone of most programming languages, enabling the creation of complex, dynamic programs.

  8. Conditional Statements in Java - Simply Coding

    Jun 16, 2021 · Here we are going to learn above Java Conditional Statements. You can watch our video on Conditional Statements in Java- Click Here. Q. 1 What is a block or compound statement? Ans. A block is a group of one or more than …

  9. ICSE ISC Java Programs - Blogger

    if statement is also called as a conditional statement. A conditional statement is essentially formed by using relational operators. An if-else construct accomplishes 'fall through'. In a switch case, when the switch value does not match with any case …

  10. Conditional Statements in Java - Shiksha Online

    Aug 20, 2023 · The below article goes through the Conditional Statements in Java. It covers if, if-else, nested if-else, and switch statements with examples.

  11. Some results have been removed
Refresh