Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Search & Filtering

Input two integers in one line, separated by a space. The first integer shall represent the starting point, and the other, the ending point.


Print out all even numbers that are within the range of the starting and ending point. Also keep in mind that the starting and ending numbers are also included in your even number evaluation!

The Greater One

by CodeChum Admin


Let us now try comparing two numbers by letting the user input two different numbers and say "Greater" if the first inputted number is greater than the second one, and "Lesser" if it’s the other way around.




Let's go!


Input


A line containing two different numbers separated by a space.


1.2·1.02

Output


A line containing a string.


Greater


Print out all numbers from 1 to 100 that is divisible by 3, each in separate lines, using a for loop.

The FizzBuzz Game


by CodeChum Admin



Let's play a game of FizzBuzz! It works just like the popular childhood game "PopCorn", but with rules of math applied since math is fun, right? Just print out "Fizz" when the given number is divisible by 3, "Buzz" when it's divisible by 5, and "FizzBuzz" when it's divisible by both 3 and 5!





Let the game begin!



Input



A line containing an integer.



15


Output



A line containing a string.



FizzBuzz

Input a random positive integer.


Using a for() loop, generate the factorial value of the integer and print out the result.Tip: Factorials work like this: Factorial of 5 = 1*2*3*4*5


Note that there is a special case and that is the factorial of 0 which is 1.

Input a random positive integer in one line. This will serve as the ending point of your loop.


Using a for() loop, loop from 1 to the ending point (inclusive) and perform the following statements:


If the number is only divisible by 3, print "Fizz"


If the number is only divisible by 5, print "Buzz"


If the number is divisible by both 3 and 5, print "FizzBuzz"


If nothing is true in the previous conditions, skip the number

Product of array Items

given an array integers,write JS program to get the product of the integers in the given array.

input

the input will be containing single line integers.

output

the output should be single line containing the product as shown in sample outputs.


input1

[1,2,3]

output1

[1 * 2 * 3 = 6]

input2

[-1, -2, -3]

output2

[-1*-2*-3 = -6]


Note: The Output should be displayed as [1 * 2 * 3 = 6]


"use strict";


process.stdin.resume();

process.stdin.setEncoding("utf-8");


let inputString = "";

let currentLine = 0;


process.stdin.on("data", (inputStdin) => {

 inputString += inputStdin;

});


process.stdin.on("end", (_) => {

 inputString = inputString

  .trim()

  .split("\n")

  .map((str) => str.trim());

 main();

});


function readLine() {

 return inputString[currentLine++];

}


function main() {

 let integers = JSON.parse(readLine());


 /* Please do not modify anything above this line */


 /* Write your code here and log the output */

}



Create an console application to book train tickets. Create a Passanger class with (Name, Age) and write a function called TicketBooking(no_of_tickets) that takes no.of tickets to be booked. If the no of tickets is > 2 per booking, raise an user defined exception, and print "cannot book more than 2 tickets". Else Print "Ticket Booked Successfully". Add a Test class to call TicketBooking method by accepting all required details.


Create a list of numbers consisting of your student number

and find any s

pecific number inside the list

,

you can use listsearch or binary

search

this list. Then do a sorting to sort the numbers in this list from

least to greatest.

Keep the

repetitive

numbers as it is.



CCBP Login

The goal of this coding exam is to quickly get you off the ground with CCBP Login Page

Use the below reference image:(final output)

https://assets.ccbp.in/frontend/content/dynamic-webapps/ccbp-login-op.gif


  1. Test cases:
  2. when the HTML input element with id name lost the focus, if the value of HTML input element with id name is empty, then the text content in the HTML paragraph element with id name ErrMsg should have the error message otherwise it was an empty string
  3. when the HTML input element with id password lost the focus, if the value of HTML input element with id password empty, then the text content in the HTML paragraph element with id name passwordErrMsg should have the error message otherwise it was an empty string
  4. when the HTML button element with attribute type submit is clicked, if the values of the HTML input elements with ids name and password are not empty then the text content in HTML paragraph element with id resultMsg should be displayer "Login Success"
LATEST TUTORIALS
APPROVED BY CLIENTS