shishantpandeySep 7, 20221 min readfind sum of number in advance mode javascriptvar myinputarr = []; var size = 5; // Array size alert("enter number and press enter if need not mare press cancle"); myinputarr[0] =...
shishantpandeyAug 28, 20221 min readCODE TO MAKE A GAME (GUSSE THE NUMBER)<script> // a simple code to gusse the right number console.time("gusse time"); let randomnumber = Math.random() * 100; randomnumber =...
shishantpandeyAug 23, 20221 min readFIZZBUZZ IN JSfor (let i = 0; i < 101; i++) { if (i % 3 != 0 && i % 5 != 0) { document.write(i, ","); } if (i > 0 && i % 3 == 0 && i % 5 != 0) {...
shishantpandeyAug 22, 20221 min readHOW TO FIND FUM OF FIRST N NATURAL NUMBER IN JAVASCRIPTlet sum = 0; let lastnum = prompt("enter the number"); a = Number.parseInt(a); for (let i = 0; i <= lastnum; i++) { sum = i + sum; }...
shishantpandeyAug 22, 20221 min readHOW TO FIND HCF LCM IN JAVASCRIPTFOR HCF let a, b; a = prompt("enter first number"); b = prompt("enter sec number"); a = Number.parseInt(a); b = Number.parseInt(b); max...
shishantpandeyAug 20, 20222 min readHOW TO MAKE A RESPONSIVE AND DYNAMIC CALCULATORFULL FILE HTML <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <meta http-equiv="X-UA-Compatible" content="IE=edge" />...
shishantpandeyAug 18, 20221 min readFIND POWER OF ANY NUMBER USING PHP<?php $base= 10; $power = 3; $result = pow($base,$power); echo $result; ?> RESULT
shishantpandeyAug 6, 20221 min readCHEEK GRADE IN C PROGRAM#include <stdio.h> int main() { /*here is a simply code that tell your grade accordinh to your number c=lees than 30 b=more than or equal...
shishantpandeyAug 6, 20221 min readHOW TO FIND ARMSTRONG NUMBER#include <stdio.h> #include <math.h> int main() { // An Armstrong number is a n digit number, which is equal to the sum of the nth...
shishantpandeyAug 5, 20221 min readEVEN OR ODD IN C #include <stdio.h> int main() { int a = 24; int b = 0; printf("entre any digit\n"); scanf("%d", &a); if (a % 2 == 0) { printf("it is an...