You are on page 1of 6

What is Programming

Programming is the implementation of logic to facilitate specified computing operations


and functionality. It occurs in one or more languages, which differ by application,
domain and programming model.

5 Example of Programming Language


1. Java is a programming language that produces software for multiple platforms.
When a programmer writes a Java application, the compiled code (known as
bytecode) runs on most operating systems (OS), including Windows, Linux and
Mac OS. Java derives much of its syntax from the C and C++ programming
languages.

Java was developed in the mid-1990s by James A. Gosling, a former computer


scientist with Sun Microsystems.

Java Coding Samples

/* HelloWorld.java
*/

public class HelloWorld


{
public static void main(String[] args) {
System.out.println("Hello World!");
}
}

2. C# is a general object-oriented programming (OOP) language for networking and


Web development. C# is specified as a common language infrastructure (CLI)
language.
In January 1999, Dutch software engineer Anders Hejlsberg formed a team to
develop C# as a complement to Microsoft’s NET framework. Initially, C# was
developed as C-Like Object Oriented Language (Cool). The actual name was
changed to avert potential trademark issues. In January 2000, NET was released
as C#. Its NET framework promotes multiple Web technologies.
The term is sometimes spelled as C Sharp or C-Sharp.

The term’s # character derives its name from the musical sharp key, which
denotes a one semitone pitch increase. C# is pronounced "see sharp."
C# improved and updated many C and C++ features, including the following:

 C# has a strict Boolean data variable type, such as bool, whereas C++
bool variable types may be returned as integers or pointers to avoid
common programming errors.
 C# automatically manages inaccessible object memory using a garbage
collector, which eliminates developer concerns and memory leaks.
 C# type is safer than C++ and has safe default conversions only (for
example, integer widening), which are implemented during compile or
runtime.
C# Coding Samples

using System;

using System.Text;

namespace ConsoleApplication1

class Program

static void Main(string[] args)

while (true)

Console.WriteLine("I am in the Loop !!!!");

return; //This will exit the console application's running


thread

3. Ruby is an open source, object-oriented programming language created by


Yukihiro “Matz” Matsumoto. Designed to provide a programming language that
focuses on simplicity and productivity, the creation of Ruby drew its inspiration
from Lisp, Smalltalk and Perl. Although naturally object-oriented, Ruby can also
be applied using procedural and functional programming styles.

C# Coding Samples

While Loop

# Some counting with a while.


a = 0
while a < 15
print a, " "
if a == 10 then
print "made it to ten!!"
end
a = a + 1
end
print "\n"

# Here's a way to empty an array.


joe = [ 'eggs.', 'some', 'break', 'to', 'Have' ]
print(joe.pop, " ") while joe.size > 0
print "\n"
4. Hypertext Markup Language revision 4.0 (HTML 4.0) is a markup language
that represents the structure and presentation of web pages. HTML 4.0 was
published on December 1997 as a W3C Recommendation.
In addition to previous revisions of HTML, HTML 4.0 supports style sheets,
scripting languages, object support, more multimedia options, and improved
accessibility for users with disabilities, among other features.

HTML 4.0 extended the previous HTML 3.2 revision into powerful capabilities
including ideas never implemented from HTML 3.0 draft. On December 1999,
HTML 4.0 was replaced by HTML 4.01 as a minor update correcting minor
problems. Thus, HTML 4.01 is the final standard version recommended by W3C.

HTML 4.0 Coding Samples

<html>

<head><title>Definition List Example</title></head>

<body>

<dl>

<dt><b>Word 1</b></dt><dd>This corresponds to

the meaning of word 1.</dd><br><br>

<dt><b>Word 2</b></dt><dd>This corresponds to

the meaning of word 2.</dd><br><br>

<dt><b>Word 3</b></dt><dd>This corresponds to

the meaning of word 3.</dd><br><br>

<dt><b>Word 4</b></dt><dd>This corresponds to

the meaning of word 4.</dd><br><br>

</dl>

</body>

</html>

5. C++ is a general-purpose object-oriented programming (OOP) language,


developed by Bjarne Stroustrup, and is an extension of the C language. It is
therefore possible to code C++ in a "C style" or "object-oriented style." In certain
scenarios, it can be coded in either way and is thus an effective example of a
hybrid language.
C++ is considered to be an intermediate-level language, as it encapsulates both
high- and low-level language features. Initially, the language was called "C with
classes" as it had all the properties of the C language with an additional concept
of "classes." However, it was renamed C++ in 1983.
It is pronounced "see-plus-plus."

C++ Coding Samples

Even and 0dd number in C++


#include <iostream>

using namespace std;

int main(int argc, char *argv[])


{
int no;
cout << "Enter any number: ";
cin >> no;
if(no%2==0)
{
cout<<"Even number";
}
else
{
cout<<"Odd number";
}
return 0;
}

/*
Enter any num: 55
Odd num
*/
SOUTHERN LEYTE STATE UNIVERSITY

HINUNANGAN CAMPUS
Hinunangan, Southern Leyte

What is Programming
&
Examples of Language

Submitted by:
___________________

Submitted to:
__________________

You might also like