Skip to content

Instantly share code, notes, and snippets.

View rehashedprime's full-sized avatar

marcusduck rehashedprime

View GitHub Profile
@rehashedprime
rehashedprime / TEST.JAVA
Created October 19, 2019 15:36
TEST.JAVA
public class test {
public static int sum( int i1, i2) {
int result = 0;
for (int i=i1; i<= i2; i++)
result += i;
return result;
}
public static void main ( String [] args){
System.out.println("Sum from 1 to 10 is " + sum(1, 10));
System.out.println("Sum from 20 to 37 is " + sum(20, 37));
CREATE DATABASE DAPP;
CREATE TABLE PURCHASES
(PURID INT PRIMARY KEY,
PURDATE DATETIME NOT NULL,
PURAMT MONEY NOT NULL);