Skip to content

Instantly share code, notes, and snippets.

View Aniruddha-Deb's full-sized avatar

Aniruddha Deb Aniruddha-Deb

View GitHub Profile
import java.io.*;
import java.util.*;
import java.math.*;
import static java.lang.Math.*;
/**
This is my custom comeptitive programming setup.
@author Aniruddha Deb
*/
@Aniruddha-Deb
Aniruddha-Deb / ECommerce.java
Created July 15, 2017 17:21
The code for my ICSE computer project
import java.io.*;
public class ECommerce {
// Constants to be used for the brands
public String availableBrands[] = {
"Samsung",
"Apple",
"OnePlus",
"LG",
@Aniruddha-Deb
Aniruddha-Deb / ProbablePi.c
Created June 16, 2017 17:38
C program to calculate the (approximate) value of Pi using probability
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <math.h>
double genRand() {
return (double)rand()/RAND_MAX*2.0-1.0;
}
int main() {