Last active
November 8, 2017 12:58
-
-
Save iSkore/45355d7e6b19368ae74fd25b0b66c2f8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
int main(int argc, char *argv[]) { | |
int w = 0; | |
for( int x = 0; x < 100; x++ ) { | |
for( int y = 0; y < 100; y++ ) { | |
for( int z = 0; z < 100; z++ ) { | |
w += z; | |
} | |
w += y; | |
} | |
w += x; | |
} | |
printf( "%i", w ); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
using namespace std; | |
int main(int argc, char *argv[]) { | |
int w = 0; | |
for( int x = 0; x < 100; x++ ) { | |
for( int y = 0; y < 100; y++ ) { | |
for( int z = 0; z < 100; z++ ) { | |
w += z; | |
} | |
w += y; | |
} | |
w += x; | |
} | |
printf( "%i", w ); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import "fmt" | |
func main() { | |
w := 0 | |
for x := 0; x < 100; x++ { | |
for y := 0; y < 100; y++ { | |
for z := 0; z < 100; z++ { | |
w += z | |
} | |
w += y | |
} | |
w += x | |
} | |
fmt.Println( "Value of w is now:", w ) | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let w = 0; | |
for( let x = 0; x < 100; x++ ) { | |
for( let y = 0; y < 100; y++ ) { | |
for( let z = 0; z < 100; z++ ) { | |
w += z; | |
} | |
w += y; | |
} | |
w += x; | |
} | |
console.log( w ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#import <Foundation/Foundation.h> | |
int main(int argc, char *argv[]) { | |
@autoreleasepool { | |
int w = 0; | |
for( int x = 0; x < 100; x++ ) { | |
for( int y = 0; y < 100; y++ ) { | |
for( int z = 0; z < 100; z++ ) { | |
w += z; | |
} | |
w += y; | |
} | |
w += x; | |
} | |
NSLog( @"%i", w ); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/perl | |
$w = 0; | |
for( $x = 0; $x < 100; $x++ ) { | |
for( $y = 0; $y < 100; $y++ ) { | |
for( $z = 0; $z < 100; $z++ ) { | |
$w += $z; | |
} | |
$w += $y; | |
} | |
$w += $x; | |
} | |
print( $w ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$w = 0; | |
for( $x = 0; $x < 100; $x++ ) { | |
for( $y = 0; $y < 100; $y++ ) { | |
for( $z = 0; $z < 100; $z++ ) { | |
$w += $z; | |
} | |
$w += $y; | |
} | |
$w += $x; | |
} | |
echo( $w ); | |
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
w = 0 | |
for x in range( 0, 100 ): | |
for y in range( 0, 100 ): | |
for z in range( 0, 100 ): | |
w += z | |
w += y | |
w += x | |
print( w ) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fn main() { | |
let mut w = 0; | |
for x in 0..100 { | |
for y in 0..100 { | |
for z in 0..100 { | |
w += z; | |
} | |
w += y; | |
} | |
w += x; | |
} | |
println!( "{}", w ); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var w = 0 | |
for x in 0...100 { | |
for y in 0...100 { | |
for z in 0...100 { | |
w += z | |
} | |
w += y | |
} | |
w += x | |
} | |
print( "\(w)" ) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment