Skip to content

📏 Calculating the sum from one to a billion in different programming languages, inspired by https://github.com/leachim6/hello-world

Notifications You must be signed in to change notification settings

rjalfa/one-two-three...infinity

 
 

Repository files navigation

one-two-three...infinity

Calculating the sum from one to a billion in different programming languages, inspired by @leachim6/hello-world

The following implementations need to be reviewed:

Current Languages

Rules

The code should be fully runnable. (The following example is Swift) NOT:

    var sum = 0
    for i in 1...1000000000 {
		sum += i
	}
	print (sum)

Instead do:

    class ViewController: UIViewController {
        func viewDidLoad() {
        	var sum = 0
            for i in 1...1000000000 {
            	sum += i
            }
            print (sum)
        }
    }

About

📏 Calculating the sum from one to a billion in different programming languages, inspired by https://github.com/leachim6/hello-world

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Cuda 14.6%
  • C# 9.9%
  • Java 9.1%
  • Kotlin 9.0%
  • C++ 6.9%
  • Swift 5.3%
  • Other 45.2%