Print "GeeksforGeeks" in 10 different programming languages
Last Updated :
26 Dec, 2017
The most elementary part of learning any computer programming language is the ability to print a desired text on the screen or console. Thus, the task of this article is to guide programmers new to any of the 10 different languages discussed below, i.e. GO, Fortran, Pascal, Scala, Perl, ADA, Ruby, Kotlin, Javascript and C#.
Prerequisites : The most important tool we need for a computer programming language is an integrated development environment.
Integrated Development Environment : An Integrated Development Environment (IDE) is a software application that provides comprehensive facilities to computer programmers for software development. An IDE normally consists of a source code editor, build automation tools and a debugger. A programmer shall write the code on the text editor and the IDE binds the program and run it on the system. Now, many organizations target to build IDEs both paid and free versions for various programming languages. These can be installed on the system and we can then run our programs onto it. Another way of running the same program is using online IDEs known as cloud IDE.
Cloud IDE : Cloud IDE is a web application where programmer writes the code, this code is then run on the server program and thus the result of the code is displayed to the user. In cloud IDEs, the browser is essentially a thin client that allows users to access a variety of Cloud-based applications and services and running program on an online machine is one of them. In the case of cloud IDEs the user only needs and active internet connection and a web browser. Online IDEs are light weighted websites and can be access from anywhere and any machine. Examples of online IDEs are
Amazon Cloud9,
Codeanywhere are some of the cloud IDEs which provide users pay-per-use facility. Some of the free IDEs are
ideone,
geeksforgeeks IDE,
codechef IDE,
rextester. The latter ones are used mostly for smaller programs and majorly for competitive programming purpose.
All the compilers or interpreter of the languages discussed below are available on
ideone. Once we are done with setting up the integrated development environment, next comes the syntax. All languages, may it be compiled or interpreted, has a syntax.
Syntax : Syntax of a computer language is the set of rules that defines the combinations of symbols that are considered to be a correctly structured document or fragment in that language. The compiler or interpreter might throw some errors if at any place the syntax rules are disturbed. The syntax of the 10 languages are given below. Readers are required to open ideone's link on a new tab, select the desired language and copy the code from here. Thus, this way reader will successfully have his doors open for a new programming language. Follow the programs below for syntax of the language.
[tabby title = "GO"]
package main
import "fmt"
func main(){
fmt.Printf("GeeksForGeeks - A computer science portal for geeks")
}
[tabby title = "Fortran"]
!Compiler - gfortran 6.3
program myfirstprogram
!Print Message
write (*,*)'GeeksForGeeks - A computer science portal for geeks'
end
[tabby title = "Pascal"]
(*Compiler - gpc20070904*)
program MyFirstProgram;
begin
(*Print Message*)
writeln ('GeeksForGeeks - A computer science portal for geeks')
end.
[tabby title = "Scala"]
//Scala, Compiler - scala 2.12.1
object Main extends App {
//Print Message
System.out.println("GeeksForGeeks - A computer science portal for geeks");
}
[tabby title = "Perl"]
#Interpreter/Compiler - perl6
#!/usr/bin/perl6
#First program in Perl
# Strict is recommended for new programmers
# as if there are errors use strict will
#abort the execution if used.
use strict;
# Print a message.
print "GeeksForGeeks - A computer science portal for geeks\n";
[tabby title = "ADA"]
--ADA95 or ADA compiler - gnat 6.3
with Ada.Text_IO; use Ada.Text_IO;
with Ada.Integer_Text_IO; use Ada.Integer_Text_IO;
procedure MyFirstProgram is
begin
--Print Message
Put("GeeksForGeeks - A computer science portal for geeks");
end;
[tabby title = "Ruby"]
#Ruby - ruby 2.3.3
class MyFirstProgram
def initialize(name)
@name = name.capitalize
end
#Function for printing Message
def printMessage
puts "GeeksForGeeks - #{@name}!"
end
end
#Creating object of a class
printmessageobject = MyFirstProgram.new("A computer science portal for geeks")
#Printing Message
printmessageobject.printMessage
[tabby title = "Kotlin"]
//Kotlin 1.1
fun main(args: Array) {
println("Hello, world!")
}
[tabby title = "Javascript"]
//Javascript - rhino 1.7.7
importPackage(java.io);
importPackage(java.lang);
//Print Message
System.out.println("GeeksForGeeks - A computer science portal for geeks");
[tabby title = "C#"]
//C# - gmcs 4.6.2
using System;
public class MyFirstProgram
{
//Driver Function
public static void Main()
{
//Print Message
Console.WriteLine("GeeksForGeeks - A computer science portal for geeks");
}
}
[tabbyending]
Similar Reads
Top Highest Paying Programming Languages in 2024
Imagine being able to command a salary thatâs 20% higher than your peers simply by mastering the right programming language. In todayâs rapidly evolving IT industry, certain high-paying programming languages can significantly boost your career and earning potential. According to the Stack Overflow D
15+ min read
7 Highest Paying Programming Languages For Freelancers
Programming is a lucrative career domain that promises an astonishing future, extremely high salary, global recognition, and extensive stability. As per the latest reports, programming jobs are expected to rise by 21% by the year 2028. Freelance programmers are self-employed individuals who decide t
7 min read
Learn Free Programming Languages
In this rapidly growing world, programming languages are also rapidly expanding, and it is very hard to determine the exact number of programming languages. Programming languages are an essential part of software development because they create a communication bridge between humans and computers. No
9 min read
"Hello World" In 30 Different Languages
In this article, we are going to see how to print "Hello World" in 30 different languages. It includes languages like C, C++, Cobol, Scala, Matlab, C#, CoffeeScript, Delphi, Dart, Haskell, Pascal, Ruby, Python, Assembly, R, Swift, Kotlin, PHP, Java, Go, F#, Lisp, JavaScript, Algol, Perl, Tcl, TypeSc
13 min read
Print pyramid of GeeksforGeeks in PL/SQL
PL/SQL is a block-structured language that enables developers to combine the power of SQL with procedural statements. All the statements of a block are passed to the oracle engine all at once which increases processing speed and decreases the traffic.PL/SQL extends SQL by adding constructs found in
2 min read
10 Most Popular Programming Languages in India[2025]
India's IT sector is one of the leading business arenas filled with innovations and engineering and technological revolutions the world over. With an army of more than 4.4 million software developers as of 2025, India has metamorphosed into a resource for global technology talent. The country produc
15+ min read
Top 10 Programming Languages to Learn in 2023
Content has been removed from this post.
1 min read
Introduction to Programming Languages
Introduction: A programming language is a set of instructions and syntax used to create software programs. Some of the key features of programming languages include: Syntax: The specific rules and structure used to write code in a programming language.Data Types: The type of values that can be store
13 min read
Programs to print Interesting Patterns
Program to print the following pattern: Examples : Input : 5Output:* * * * * * * * * ** * * * * * * ** * * * * ** * * ** ** ** * * ** * * * * ** * * * * * * ** * * * * * * * * *This program is divided into four parts.C++// C++ program to print // the given pattern #include<iostream> using name
15+ min read
5 Most Difficult Programming Languages of the World
You might have written your first code in programming languages such as C/C++ or Java and might have faced difficulty learning these languages. Well, these languages are at least readable or understandable but what if we say to write a program printing 'Hello World!' using spaces, tabs, and linefeed
6 min read