JavaScript required
We’re sorry, but Coda doesn’t work properly without JavaScript enabled.
Skip to content
Gallery
YouTube-TD-TN34
25 Languages Basic Hello World TN34DeVs
Second page For testing
More
Share
Explore
25 Languages Basic Hello World TN34DeVs
Devarajan Nachimuthu
1.C - 1972
#include<stdio.h>
#include<stdbool.h>
int main()
{
int number1 = 13;
int number2 = 31;
char string1[] = "Welcome to TN34DeVs";
bool isAvailable = true;
printf("\n%s",string1);
printf("\nNumber 1: %d,Number 2: %d",number1,number2);
printf("\nTotal of Numbers 1 and 2 = %d",number1+number2);
printf("\nThe Boolean Value: %d",isAvailable);
return 0;
}
IDE Link
2.C++ - 1985
#include <iostream>
using namespace std;
int main()
{
int number1 = 13;
int number2 = 31;
char string1[] = "Welcome to TN34DeVs";
bool isAvailable = true;
cout<<string1<<endl;
cout<<"Number 1: "<<number1<<",Number 2: "<<number2<<endl;
cout<<"Total of Numbers 1 and 2 = "<<number1+number2<<endl;
cout<<"The Boolean Value: "<<isAvailable;
return 0;
}
IDE Link
3.JAVA
- 1995
Java 1.8
public class HelloWorld{
public static void main(String []args){
int number1 = 13;
int number2 = 31;
String string1 = "Welcome to TN34DeVs";
Boolean isAvailable = true;
System.out.println(string1);
System.out.println("Number 1: "+number1+"Number 2: "+number2);
System.out.println("Total of Numbers 1 and 2 = "+(number1+number2));
System.out.println("The Boolean Value: "+isAvailable);
}
}
IDE Link
Java 10+
class HelloWorld{
public static void main(String []args){
var number1 = 13;
var number2 = 31;
var string1 = "Welcome to TN34DeVs";
var isAvailable = true;
System.out.println(string1);
System.out.println("Number 1: "+number1+"Number 2: "+number2);
System.out.println("Total of Numbers 1 and 2 = "+(number1+number2));
System.out.println("The Boolean Value: "+isAvailable);
}
}
IDE Link
4.Python3 - 1991
Approach 1
number1 = 13
number2 = 31
string1 = "Welcome to TN34DeVs"
isAvailable = True
print(string1)
print("Number 1: ",number1,"Number 2: ",number2)
print("Total of Numbers 1 and 2 = ",(number1+number2))
print("The Boolean Value: ",isAvailable)
IDE Link
Approach 2
number1 = 13
number2 = 31
string1 = "Welcome to TN34DeVs"
isAvailable = True
print(string1)
print("Number 1: {0}, Number 2: {1}".format(number1,number2))
print(f"Total of Numbers 1 and 2 = {(number1+number2)}")
print(f"The Boolean Value: {isAvailable}")
IDE Link
5.JavaScript / Node.js - 1995/2009
Approach 1
number1 = 13
number2 = 31
string1 = "Welcome to TN34DeVs"
isAvailable = true
console.log(string1);
console.log("Number 1: "+number1+"Number 2: "+number2);
console.log("Total of Numbers 1 and 2 = "+(number1+number2));
console.log("The Boolean Value: "+isAvailable);
IDE Link
Approach 2
number1 = 13
number2 = 31
string1 = "Welcome to TN34DeVs"
isAvailable = true
console.log(string1);
console.log(`Number 1: ${number1} Number 2: ${number2}`);
console.log(`Total of Numbers 1 and 2 = ${(number1+number2)}`);
console.log(`The Boolean Value: ${isAvailable}`);
IDE Link
6.Go - 2009
Approach 1
package main
import "fmt"
func main() {
var number1 int = 13
var number2 int = 31
var string1 string = "Welcome to TN34DeVs"
var isAvailable bool = true
fmt.Printf("\n%s",string1)
fmt.Printf("\nNumber 1: %d,Number 2: %d",number1,number2)
fmt.Printf("\nTotal of Numbers 1 and 2 = %d",number1+number2)
fmt.Printf("\nThe Boolean Value: %v",isAvailable)
}
IDE Link
Approach 2
package main
import "fmt"
func main() {
number1 := 13
number2 := 31
string1 := "Welcome to TN34DeVs"
isAvailable := true
fmt.Println(string1)
fmt.Println("Number 1:",number1,"Number 2:",number2)
fmt.Println("Total of Numbers 1 and 2 =",number1+number2)
fmt.Println("The Boolean Value:",isAvailable)
}
IDE Link
7.TypeScript - 2012
Approach 1
var
number1 =
13
var
number2 =
31
var
string1 =
"Welcome to TN34DeVs"
var
isAvailable =
true
console.log(string1);
console.log(
`Number 1:
${number1}
Number 2:
${number2}
`
);
console.log(
`Total of Numbers 1 and 2 =
${(number1+number2)}
`
);
console.log(
`The Boolean Value:
${isAvailable}
`
);
IDE Link
Approach 2
var
number1:
number
=
13
var
number2:
number
=
31
var
string1:
String
=
"Welcome to TN34DeVs"
var
isAvailable:
boolean
=
true
console.log(string1);
console.log(
`Number 1:
${number1}
Number 2:
${number2}
`
);
console.log(
`Total of Numbers 1 and 2 =
${(number1+number2)}
`
);
console.log(
`The Boolean Value:
${isAvailable}
`
);
IDE Link
8.Rust - 2010
fn main() {
let number1 = 13;
let number2:i32 = 31;
let string1:&str = "Welcome to TN34DeVs";
let is_available:bool = true;
println!("{}",string1);
println!("Number 1: {} Number 2: {}",number1,number2);
println!("Total of Numbers 1 and 2 = {}",(number1+number2));
println!("The Boolean Value: {}",is_available);
}
IDE Link
9.Ruby - 1995
number1 = 13
number2 = 31
string1 = "Welcome to TN34DeVs"
isAvailable = true
print(string1)
print("\nNumber 1: ",number1,"Number 2: ",number2)
print("\nTotal of Numbers 1 and 2 = ",(number1+number2))
print("\nThe Boolean Value: ",isAvailable)
IDE Link
10.Perl - 1988
Want to print your doc?
This is not the way.
Try clicking the ⋯ next to your doc name or using a keyboard shortcut (
Ctrl
P
) instead.