Jump to content


Check out our Community Blogs

Register and join over 40,000 other developers!


Recent Status Updates

View All Updates

Photo
- - - - -

100 ways to print out "Hello CodeCall"


  • Please log in to reply
158 replies to this topic

#13 Guest_Jordan_*

Guest_Jordan_*
  • Guest

Posted 15 February 2009 - 10:28 AM

Ah yes. change that echo to print then.

Posted via CodeCall Mobile
  • 0

#14 Turk4n

Turk4n

    ???

  • Expert Member
  • PipPipPipPipPipPipPip
  • 1919 posts
  • Location:Sweden
  • Programming Language:C, Java, PHP, Python, Bash
  • Learning:C++, C#, JavaScript, Visual Basic .NET, Others

Posted 15 February 2009 - 12:47 PM

#10

C
#include <stdio.h>
int main(void){
printf("Hello CodeCall !");
return 0;
}

  • 0

#15 Xav

Xav

    CC Mentor

  • VIP Member
  • PipPipPipPipPipPipPipPip
  • 8356 posts

Posted 15 February 2009 - 12:50 PM

#11

JS, but printing it instead of displaying it in a message box. :)

<script type="text/javascript">
document.write('Hello CodeCall');
</script>

  • 0
If you enjoy reading this discussion and are thinking about commenting, why not click here to register and start participating in under a minute?

#16 Turk4n

Turk4n

    ???

  • Expert Member
  • PipPipPipPipPipPipPip
  • 1919 posts
  • Location:Sweden
  • Programming Language:C, Java, PHP, Python, Bash
  • Learning:C++, C#, JavaScript, Visual Basic .NET, Others

Posted 15 February 2009 - 12:59 PM

#11

JS, but printing it instead of displaying it in a message box. :)

<script type="text/javascript">
document.write('Hello CodeCall');
</script>


Need to be changed to...
document.write("Hello CodeCall");

  • 0

#17 Xav

Xav

    CC Mentor

  • VIP Member
  • PipPipPipPipPipPipPipPip
  • 8356 posts

Posted 15 February 2009 - 01:41 PM

Nope, my version is correct.

JavaScript - Strings
  • 0
If you enjoy reading this discussion and are thinking about commenting, why not click here to register and start participating in under a minute?

#18 Turk4n

Turk4n

    ???

  • Expert Member
  • PipPipPipPipPipPipPip
  • 1919 posts
  • Location:Sweden
  • Programming Language:C, Java, PHP, Python, Bash
  • Learning:C++, C#, JavaScript, Visual Basic .NET, Others

Posted 15 February 2009 - 02:25 PM

Nope, my version is correct.

JavaScript - Strings


How come, it won't work on me?
  • 0

#19 Guest_Jaan_*

Guest_Jaan_*
  • Guest

Posted 15 February 2009 - 02:38 PM

#12


<?php

$array = array("H", "e", "l", "l", "o", " ", "C", "o", "d", "e", "C", "a", "l", "l");

list($first, $second, $third, $fourth, $fifth, $sixth, $seventh, $eight, $ninth, $tenth, $eleventh, $twelfth, $thirteenth, $fourteenth) = $array;

echo $first."".$second."".$third."".$fourth."".$fifth."".$sixth."".$seventh."".$eight."".$ninth."".$tenth."".$eleventh."".$twelfth."".$thirteenth."".$fourteenth;

?>

  • 0

#20 chili5

chili5

    CC Mentor

  • Expert Member
  • PipPipPipPipPipPipPipPip
  • 3038 posts
  • Programming Language:Java, C#, PHP, JavaScript, Ruby, Transact-SQL
  • Learning:C, Java, C++, C#, PHP, JavaScript, Ruby, Transact-SQL, Assembly, Scheme, Haskell, Others

Posted 15 February 2009 - 03:14 PM

#13:

public class CodeCall {

    public static String sCODECALL = "Hello CodeCall";

    public static void main(String[] args) {
        print(0);

    }

    public static void print(int i) {
        if (i == sCODECALL.length()) {
            System.out.println();
            return;
        }
        System.out.print(sCODECALL.charAt(i));
        print(i + 1);
    }
}

  • 0

#21 Guest_Jordan_*

Guest_Jordan_*
  • Guest

Posted 15 February 2009 - 04:38 PM

#14:


<?php
$aryCodeCall[] = "Hello CodeCall";
print_r($aryCodeCall);
?>

  • 0

#22 Aereshaa

Aereshaa

    CC Devotee

  • Just Joined
  • PipPipPipPipPipPip
  • 638 posts

Posted 15 February 2009 - 05:03 PM

#15: nasm format x86 asm for linux.
section .data
msg:	db	"Hello, Codecall!",10
len:	dd	$-msg

section .bss
	

section .text
	global _start

_start:
	mov	eax,4
	mov	ebx,1
	mov	ecx,msg
	mov	edx,[len]
	int	80h
		
	mov	eax,1		;exit syscall
	mov	ebx,0
	int	80h

  • 0
Watches: Nanoha, Haruhi, AzuDai. Listens to: E-Type, Dj Melodie, Nightcore.
"When people are wrong they need to be corrected. And then when they can't accept it, an argument ensues." - MeTh0Dz

#23 Turk4n

Turk4n

    ???

  • Expert Member
  • PipPipPipPipPipPipPip
  • 1919 posts
  • Location:Sweden
  • Programming Language:C, Java, PHP, Python, Bash
  • Learning:C++, C#, JavaScript, Visual Basic .NET, Others

Posted 16 February 2009 - 12:33 AM

#16

Java
public class CodeCall{
	public static void main(String[] arg) {	
		Hello();
	}
	public static void Hello() {
		System.out.println("Hello CodeCall");
	}
}

  • 0

#24 Brandon W

Brandon W

    CC Mentor

  • Expert Member
  • PipPipPipPipPipPipPipPip
  • 2092 posts
  • Location:Ipswich, Australia
  • Programming Language:C, Java
  • Learning:Java, C++, JavaScript

Posted 16 February 2009 - 12:55 AM

#17

$var = "Hello Codecall!";

echo $var;

  • 0
I've returned...




Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download