Skip to main content
added 8 characters in body
Source Link
cobrexus
  • 833
  • 6
  • 19

Rust, 46 45 4040 39 bytes

fn main(){for x in 1..{printlnprint!("{x} 
")}}

Attempt This Online!Attempt This Online!

Rust, 46 45 40 bytes

fn main(){for x in 1..{println!("{x}")}}

Attempt This Online!

Rust, 46 45 40 39 bytes

fn main(){for x in 1..{print!("{x} 
")}}

Attempt This Online!

deleted 3 characters in body
Source Link
cobrexus
  • 833
  • 6
  • 19

Rust, 46 4545 40 bytes

fn main(){(for x in 1..).for_each(|x|println{println!("{x}"))}}

Attempt This Online!Attempt This Online!

Rust, 46 45 bytes

fn main(){(1..).for_each(|x|println!("{x}"))}

Attempt This Online!

Rust, 46 45 40 bytes

fn main(){for x in 1..{println!("{x}")}}

Attempt This Online!

Rollback to Revision 2
Source Link
cobrexus
  • 833
  • 6
  • 19

Rust, 46 45 4345 bytes

letfn f=||main(){(1..).for_each(|x|print|x|println!("{x}\n""));}

Attempt This Online!Attempt This Online!

Rust, 46 45 43 bytes

let f=||(1..).for_each(|x|print!("{x}\n"));

Attempt This Online!

Rust, 46 45 bytes

fn main(){(1..).for_each(|x|println!("{x}"))}

Attempt This Online!

added 5 characters in body
Source Link
cobrexus
  • 833
  • 6
  • 19
Loading
removed semicolon
Source Link
cobrexus
  • 833
  • 6
  • 19
Loading
Source Link
cobrexus
  • 833
  • 6
  • 19
Loading