Skip to content

Instantly share code, notes, and snippets.

View magneticleaves's full-sized avatar

Mephy Skunk magneticleaves

  • The Deep, Dark Forest
View GitHub Profile

Keybase proof

I hereby claim:

  • I am magneticleaves on github.
  • I am ellh (https://keybase.io/ellh) on keybase.
  • I have a public key ASBaosPNTUGJcgF2qvBLMM_HNzhl4ffXIf2gJytLMNeXNgo

To claim this, I am signing this object:

Basic Boiled and Steamed Foods

White Rice

x cups rice
2x cups water
x tsp salt
1/2x-1x tbsp olive oil or other oil (Optional)
fn main() {
let n = 35;
let mut e: f64 = 1.0;
for i in 1..n { e += (1.0 / factorial(i) as f64); }
println!("e value: {}", e);
}
fn factorial(mut n: u128) -> u128 {
let mut r = 1;
for i in 2..n+1 { r *= i; }