Skip to main content
We’ve updated our Terms of Service. A new AI Addendum clarifies how Stack Overflow utilizes AI interactions.
Code Golf

Return to Answer

added 60 characters in body
Source Link
Dingus
  • 11.5k
  • 2
  • 33
  • 67

Fortran 90 onwards (GFortran), 38(削除) 38 (削除ここまで) 28 bytes

program a;print*print*,(10**i/9*i,i=1,9);end
end

Try it online! Try it online!

Implicit integer arithmetic meets implied do loop.Edit: Turns out the program statement is optional, saving 10 bytes!

Fortran 90 onwards (GFortran), 38 bytes

program a;print*,(10**i/9*i,i=1,9);end

Try it online!

Implicit integer arithmetic meets implied do loop.

Fortran (GFortran), (削除) 38 (削除ここまで) 28 bytes

print*,(10**i/9*i,i=1,9)
end

Try it online!

Edit: Turns out the program statement is optional, saving 10 bytes!

Source Link
Dingus
  • 11.5k
  • 2
  • 33
  • 67

Fortran 90 onwards (GFortran), 38 bytes

program a;print*,(10**i/9*i,i=1,9);end

Try it online!

Implicit integer arithmetic meets implied do loop.

AltStyle によって変換されたページ (->オリジナル) /