14.09.2015 Views

BUITEMS

Research Journal - buitems

Research Journal - buitems

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>BUITEMS</strong><br />

Quality & Excellence in Education<br />

To study the basic concepts of Monte Carlo Simulation by calculating the value of π<br />

investigate problems. It has applications in<br />

many fields.<br />

The methodology to calculate the value of π<br />

by using this technique is discussed as below<br />

by considering the square and an inscribed<br />

circle in it as below.<br />

#include<br />

#include<br />

#include<br />

void main(void)<br />

{<br />

clrscr();<br />

FILE*stream;<br />

float r,s,x,y,dist,z;<br />

int i,k,n,range,min,max;<br />

coutmax>>n;<br />

cout

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!