Skip to content

Instantly share code, notes, and snippets.

@Toruhs
Toruhs / mc.c
Created February 1, 2012 17:09
Monte Carlo Method
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
int main(void)
{
double area, pi, x, y, n, N, i;
n = 0;
N = 100000000;