How To Update Composer In Laravel

How To Update Composer In Laravel

Read more
JS Logo

Largest Number Among Three Numbers

// program to find the largest among three numbers // take input from the user const num1 = parseFloat(prompt(“Enter first number: “)); const num2 = parseFloat(prompt(“Enter second number: “)); const num3 = parseFloat(prompt(“Enter…

Read more
JS Logo

Javascript Programe to check number is odd or even

Even numbers are those numbers that are exactly divisible by 2. The remainder operator % gives the remainder when used with a number. For example, const number = 6; const result = number % 4; // 2…

Read more

JavaScript Check number is odd or even

Even numbers are those numbers that are exactly divisible by 2. The remainder operator % gives the remainder when used with a number. For example, const number = 6; const result = number % 4; // 2…

Read more

program to print prime number in JavaScript

// program to check if a number is prime or not // take input from the user const number = parseInt(prompt(“Enter a positive number: “)); let isPrime = true; // check if number…

Read more
python logo

Example: Integer Value Between Two Numbers

If you want to find a random integer in between min (inclusive) to max (inclusive), you can use the following formula: Math.floor(Math.random() * (max – min + 1)) + min // input from the user const min…

Read more
python logo

Javascript Program to Print the value of qaudratic eqaution

This program computes roots of a quadratic equation when its coefficients are known. The standard form of a quadratic equation is: ax2 + bx + c = 0, where a, b and c…

Read more

Python program to print a pathlib module

Example 1: Using pathlib module import pathlib # path of the given file print(pathlib.Path(“my_file.txt”).parent.absolute()) # current working directory print(pathlib.Path().absolute()) Output /Users/username /Users/username Using the pathlib module, you can get the current working directory. Pass the…

Read more
python logo

Python Program to Print Natural Numbers in Reverse Order

Write a Python Program to Print Natural Numbers in Reverse Order with an example. Python Program to Print Natural Numbers in Reverse Order using While Loop This Python program allows users to enter any integer value….

Read more
python logo

Python Program to Add two Lists

Write a Python Program to add two Lists (list items) using For Loop and While Loop with a practical example. Python Program to Add two Lists Example In this python program, we are…

Read more