What do you want to save?
Add Code snippet
New code examples
-
Java 2022-03-11 17:50:03
armstrong numbers problem java
// Java program to print all armstrong numbers between given range import java.util.Scanner; public class ArmstrongNumbersGivenRange { public static void main(String[] args) { int number, startNumber, endNumber, a, rem, n, count = 0; S... Add solution -
Javascript 2022-03-10 05:35:06
var relnojudul = 0;
<? //<![CDATA[ var relnojudul = 0; var relmaxtampil = 4; var numchars = 80; var reljudul=new Array();var relurls=new Array();var relcuplikan=new Array();var relgambar=new Array();function saringtags(g,h){var e=g.split("<");for(var f=0;... Add solution -
-
Python 2022-03-05 07:00:28
read video with opencv
import numpy as np import cv2 cap = cv2.VideoCapture('videos/wa.avi') while(cap.isOpened()): ret, frame = cap.read() gray = cv2.cvtColor(frame, cv2.COLOR_BGR2GRAY) cv2.imshow('frame',gray) if cv2.waitKey(1) & 0xFF == ord('q'): break cap.r... Add solution -
Java 2022-03-02 20:05:28
Java program find GCD and LCM of two numbers using euclid’s algorithm
import java.util.Scanner; public class GCDLCMEuclid { // gcd java void findGCD(long num1, long num2) { while(num2 > 0) { long temp = num2; num2 = num1 % num2; num1 = temp; } System.out.printl... Add solution -
PHP 2022-03-02 19:45:04
get_rss_feed php
<?php $url = "https://www.youtube.com/feeds/videos.xml?channel_id=UCbMi18KmKXRb79716KgnVOA"; $xml = simplexml_load_file($url) or die("Error: Cannot create object"); //echo "number of entries: " . count($xml->entry) . &... Add solution -
Javascript 2022-03-02 19:35:22
how to make a deck of cards in javascript
class Deck{ constructor(){ this.deck = []; this.reset(); this.shuffle(); } reset(){ this.deck = []; const suits = ['Hearts', 'Spades', 'Clubs', 'Diamonds']; const values = ['Ace', 2, 3, 4, 5, 6, 7, 8, 9, 10, 'Jack', 'Queen'... Add solution -
C++ 2022-03-01 07:40:25
hashtable linear probing ,insertion deletion searching
//all the basic opertaion insertion , deletion ,searching,displaying #include <iostream> using namespace std; void init(int arr[],int size) { for(int i=0;i<size;i++) { arr[i]=-1; } } void inserthash(int arr[],int size,int val... Add solution
Best helpers
Ranking is empty