Introduction To Programming Languages
Introduction To Programming Languages
Introduction:
programming language.
1. Input unit
3. Output unit
● Memory unit
● Control unit
Most of us have heard that the CPU is called the brain of our computer
(system software) that helps humans to interact with the computer system.
data under the control of a computer program. While executing the program,
raw data is processed into the desired output format. These computer
languages. High level languages are nearly human languages that are more
are ready to create a very simple and basic program. Like we have different
languages like C, C++, C#, Java, python, etc to communicate with the
The piece of code given below performs a basic task of printing “hello world!
output devices.
At this stage, you might not be able to understand in-depth how this code
prints something on the screen. The main() is a standard function that you
will always include in any program that you are going to create from now
onwards. Note that the execution of the program starts from the main()
function. The clrscr() function is used to see only the current output on the
screen while the printf() function helps us to print the desired output on the
screen. Also, getch() is a function that accepts any character input from the
people may say that getch() helps in holding the screen to see the output).
used to convert assembly code into executable machine code. High Level
Assembly language
Machine language
Computer Hardware
There have been many programming languages some of them are listed
below:
C Python C++
C# R Ruby
Visual BASIC
True BASIC GW BASIC
Swift
LISP SCALA
Matlab F F#
● C
● Python
● C++
● Java
● SCALA
● C#
● R
● Ruby
● Go
● Swift
● JavaScript
easily converted into machine code and its execution consumes little
space in memory.
language.
semantics.
Basic Terminologies in Programming Languages:
● Algorithm: A step-by-step procedure for solving a problem or
performing a task.
data.
● Syntax: The set of rules that govern the structure and format of a
programming language.
code.
program.
Languages:
Here the basic code for addition of two numbers are given in some popular
#include <iostream>
int main()
{
int a, b, sum;
a = 10;
b = 15;
sum = a + b;
cout << "Sum of " << a << " and " << b
return 0;
efficiently.
more readable and easier to understand for both the original author
languages.
2. Code daily: Like any skill, the only way to get good at programming
is by practicing regularly. Try to write code every day, even if it’s just
a few lines.
language.
help you learn faster and make connections with other developers.
the language you’re trying to learn. Ask them questions, review their
code