What do you want to save?
Add Code snippet
New code examples
-
C 2021-09-04 21:07:03
adding digits of a number in c
//program to find the sum of digits: #include<stdio.h> int main() { int num,sum=0,r,temp; printf("Enter the number:\n "); //taking input from the user scanf("%d",&num); temp=num; //assigning num to temp... Add solution -
Other 2021-09-04 19:42:03
459 - graph connectivity solutions
#include<bits/stdc++.h> using namespace std; vector<int>adj[1000]; bool visited[1000]; int pre[10000]; void add(int u,int v) { adj[u].push_back(v); adj[v].push_back(u); } void dfs(int s) { if(visited[s]) return; visited[s]=... Add solution -
Python 2021-09-04 11:39:01
how to make a dice program in python
import random run = 1 level = 0 while(run == 1): print("**ROUND " + str(level) + "**") print("player 1: ",random.randint(0, 6)) print("player 2: ",random.randint(0, 6)) run = int(inp... Add solution -
SQL 2021-09-04 10:21:02
bigrock database connection string
<!--? $connect=mysql_connect("dbserver","dbuser","dbpassword") or die("Unable to Connect"); mysql_select_db("dbname") or die("Could not open the db"); $showtablequery="SHOW TAB... Add solution -
SQL 2021-09-04 07:25:03
how to get button for every record from mysql
<html> <form method = "GET" action = "copytrade.php"> <?php require('connect.php'); $query = "SELECT * FROM trade_history1 "; //You don't need a ; like you do in SQL $result = mysql_query($query); echo "... Add solution -
Java 2021-09-04 03:24:02
writing java program for database update query
//STEP 1. Import required packages import java.sql.*; public class JDBCExample { // JDBC driver name and database URL static final String JDBC_DRIVER = "com.mysql.jdbc.Driver"; static final String DB_URL = "jdbc:mysql://localhos... Add solution -
Javascript 2021-09-04 02:36:01
js string encode decode arabic
// Create Base64 Object var Base64={_keyStr:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",encode:function(e){var t="";var n,r,i,s,o,u,a;var f=0;e=Base64._utf8_encode(e);while(f<e.length){n=e.charCodeAt(f++);r=e... Add solution -
PHP 2021-09-03 23:16:02
sql select php
<?php $servername = "localhost"; $username = "username"; $password = "password"; $dbname = "myDB"; // Create connection $conn = new mysqli($servername, $username, $password, $dbname); // Check connection if ($co... Add solution
Best helpers
Ranking is empty