Signup/Sign In

Answers

All questions must be answered. Here are the Answers given by this user in the Forum.

Hey can you share more details on our WhatsApp - Our number is +919354261828

Please share a screenshot or screen recording so that we can help you with the error.
6 months ago
Hey, sorry for late reply, please try this code:
***



CSS Flex Flow




Item 1

Item 2

Item 3

Item 4

Item 5

Item 6

Item 7

Item 8




***
6 months ago
Use the name of the function as mentioned in the code, and add () after the name, and remove the semicolon from the end. It will work.
6 months ago
Try this,
***
public class TriangleType {

public static void main(String[] args) {
int side1 = 3;
int side2 = 4;
int side3 = 5;

int result = checkTriangleType(side1, side2, side3);

switch (result) {
case 1:
System.out.println("Scalene Triangle");
break;
case 2:
System.out.println("Isosceles Triangle");
break;
case 3:
System.out.println("Equilateral Triangle");
break;
case 4:
System.out.println("Error: Not a valid triangle");
break;
}
}

public static int checkTriangleType(int side1, int side2, int side3) {
if (side1 > 0 && side2 > 0 && side3 > 0) {
if ((side1 + side2 > side3) && (side2 + side3 > side1) && (side3 + side1 > side2)) {
if (side1 == side2 && side2 == side3) {
return 3; // Equilateral Triangle
} else if (side1 == side2 || side2 == side3 || side3 == side1) {
return 2; // Isosceles Triangle
} else {
return 1; // Scalene Triangle
}
} else {
return 4; // Error: Not a valid triangle
}
} else {
return 4; // Error: Not a valid triangle (negative side length)
}
}
}
***
6 months ago
Try this for the last part of the code,
***
let p = 12;
// write code here
p++;
console.log(p);
***

We will improve the instructions for the exercise.
6 months ago
This is the correct answer:
***
let x = true;
let y = false;

// apply AND operator
console.log(x && !y)

// apply OR operator
console.log(!x || y)
***
6 months ago
Here is the correct answer:
***




Registration Form


My Registration Form












***
You missed adding the
tag, and you also had the closing tag wrong and the tag is also inside the BODY.</div> <div class="mt-2"> <svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" fill="currentColor" class="bi bi-clock" viewBox="0 0 16 16"> <path d="M8 3.5a.5.5 0 0 0-1 0V9a.5.5 0 0 0 .252.434l3.5 2a.5.5 0 0 0 .496-.868L8 8.71V3.5z"/> <path d="M8 16A8 8 0 1 0 8 0a8 8 0 0 0 0 16zm7-8A7 7 0 1 1 1 8a7 7 0 0 1 14 0z"/> </svg> <small>6 months ago</small> </div> <div class="fw-light mt-3 border rounded p-2"><span class="badge bg-primary">Ques:</span>  <a href='/forum/step3-why-are-answer-being-wrong' class="new-black">Step-3 Why are answer being wrong?</a></div> </div> </div><!--Answer box ends--> </div> <div class="col-sm-12"> <div class="shadow-sm mt-3 p-3" id='2939'> <div class=""> <div class="fs-6"> Can you please share the code that you are trying to submit so that we can check it.</div> <div class="mt-2"> <svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" fill="currentColor" class="bi bi-clock" viewBox="0 0 16 16"> <path d="M8 3.5a.5.5 0 0 0-1 0V9a.5.5 0 0 0 .252.434l3.5 2a.5.5 0 0 0 .496-.868L8 8.71V3.5z"/> <path d="M8 16A8 8 0 1 0 8 0a8 8 0 0 0 0 16zm7-8A7 7 0 1 1 1 8a7 7 0 0 1 14 0z"/> </svg> <small>6 months ago</small> </div> <div class="fw-light mt-3 border rounded p-2"><span class="badge bg-primary">Ques:</span>  <a href='/forum/problem-in-the-lesson-placing-a-grid-item' class="new-black">Problem in the lesson placing a grid item</a></div> </div> </div><!--Answer box ends--> </div> <div class="col-sm-12"> <div class="shadow-sm mt-3 p-3" id='2938'> <div class=""> <div class="fs-6"> You missed the last instruction, which says that you have to use colspan property in the column of the first row of the table. The correct code will be:<br /> ***<br /> <!doctype html><br /> <html><br /> <head><br /> <title><br /> Hello<br />

















***
6 months ago
This is the correct code for this lesson:
***
let i = 0;
const str = "studytonight";
// write your code here
while (i < str.length)
{
console.log(str[i] + "");
i++;
}
***
6 months ago
Please share the level number and the lesson number so that we can help you.
7 months ago
It is OK. In this lesson, you will get error. Just click on Submit and proceed to the next lesson. It will work.
7 months ago