Hmm.. We are still a long way off 500 ways people! lol
Type: Posts; User: JavaPF
Hmm.. We are still a long way off 500 ways people! lol
#38 Shell Script
for a in {1..10}
do
echo -n "$a "
done
#37 Java
public class Print1to10 {
public static void main(String[] args) {
for (int a = 0; a < 11; a++) {
LOL. This is getting a bit crazy..
#34 Java
import java.io.*;
import java.text.*;
public class Print1to10 {
#33 PHP
<?php
echo "1 2 3 4 5 6 7 8 9 10";
?>
LOL @ the brainf*** example. Never even heard of it!!
Haha that totally counts! Every method counts if we are ever going to get to 500!
lol this is going to get very messy
#5 Java
public class Print1to10 {
public static void main(String[] args) {
int a = (11 - 1), b = (10 - 1), c = (9 - 1), d = (8 - 1),
#4 Java
public class Print1to10 {
public static void main(String[] args) {
int count = 1;
while (count < 11) {
System.out.print(count + " ");
...
Nice idea Chris.
I'll be amazed if we ever make it to 500!!
Heres my first contribution:
#2 Java
public class Print1to10 {
public static void main(String[] args) {