Last active
November 4, 2021 13:24
-
-
Save shatgupt/b76ebbf67c6a38d0decb686ff230dd04 to your computer and use it in GitHub Desktop.
RunMyCode Online Test
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
/* | |
This program won't run properly without an input. | |
Try with: abc | |
*/ | |
fun main(args: Array<String>) { | |
println("Hello World from Kotlin!") | |
println(readLine()!!) | |
} |
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
console.log('Hello World from Nodejs!') | |
console.log(require('fs').readFileSync(0).toString()) |
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
puts "Hello World from Ruby!" | |
puts $stdin.read |
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> | |
#include <stdlib.h> | |
int main(int argc, char* argv[]) | |
{ | |
puts("Hello World from C!"); | |
char *buffer = NULL; | |
long unsigned int len; | |
getline(&buffer, &len, stdin); | |
printf("%s", buffer); | |
free(buffer); | |
return 0; | |
} |
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) | |
{ | |
cout << "Hello World from C++!\n"; | |
string mystr; | |
getline(cin, mystr); | |
cout << mystr << "\n"; | |
return 0; | |
} |
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 "os" | |
import "fmt" | |
import "bufio" | |
func main() { | |
fmt.Println("Hello World from Go!") | |
reader := bufio.NewReader(os.Stdin) | |
text, _ := reader.ReadString('\n') | |
fmt.Print(text) | |
} |
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
/* | |
This program won't run properly without an input. | |
Try with: abc | |
*/ | |
import java.util.Scanner; | |
class HelloWorld { | |
public static void main(String[] args) { | |
System.out.println("Hello World from Java!"); | |
Scanner scan = new Scanner(System.in); | |
System.out.println(scan.nextLine()); | |
} | |
} |
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 | |
echo "Hello World from PHP!\n"; | |
echo stream_get_contents(STDIN); | |
?> |
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 sys | |
print('Hello World from Python!') | |
for line in sys.stdin: | |
print line.rstrip() |
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 sys | |
print('Hello World from Python 3!') | |
for line in sys.stdin: | |
print(line.rstrip()) |
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
/* | |
This program won't run properly without an input. | |
Try with: abc | |
*/ | |
object HelloWorld { | |
def main(args: Array[String]): Unit = { | |
println("Hello World from Scala!") | |
println(scala.io.StdIn.readLine()) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment