Program:-
It is a set of instructions to complete the task. instruction can be mathematical, logical, conditional, and comparison based.
PSEUDO CODE of addition program
a=10
b=20
c=a+b,
display c
Programming language:-
It is a set of codes to create a program practically and load into a compiler or interpreter.
Software is a set of programs and programs will be developed by a set of codes hence programming language is used to develop a software application.
Type of Programming languages:-
1 Based on Execution:-
1.1.1 low level:- It will be executed directly under the operating system with no need to use any intermediate.
Programming language:-
It is a set of codes to create a program practically and load into a compiler or interpreter.
Software is a set of programs and programs will be developed by a set of codes hence programming language is used to develop a software application.
Type of Programming languages:-
1 Based on Execution:-
1.1.1 low level:- It will be executed directly under the operating system with no need to use any intermediate.
Binary Code
1.1.2 middle level:- It will be executed by Single Intermediate means compiler or interpreter to convert program code into machine code.
C, CPP, HTML, Assembly code
1.1.3 high level:- It will be executed by a minimum of Two Intermediate means multiple compiler and interpreter.
Java,.NET, Objective-c, Kotlin, C#, VB,, Python, PHP these all are programming language is the part of high level.
2 Based on Structure
2.1 Structured:- This type of programming language syntax structure and program flow is pre-define .program will be started by top to bottom or bottom to top approach.
C, CPP,JAVA,PYTHON,PHP
Procedure, Function, Class
2.2 Unstructured:- This type of programming languages has no proper structure, it can be executed from any position.
COBOL, PASCAL, FORTON, PYTHON, PHP
Without any procedure, function, class
a=10
ReplyDeleteb=20
print("before swap")
print(a,b)
temp=a
a=b
b=temp
print("after swap")
print(a,b)
WAP to swap two numbers without using a third variable
ReplyDeletea = 5
b =9
a,b=b,a
print(a,b)
ReplyDelete#convert temperature from Celsius to Fahrenheit?
# formula --> fahrenheit = (celsius * 1.8) + 32
celsius=float(input(" Temperature in Celsius : "))
fahrenheit=(celsius*1.8)+32
print("{0} degree Celsius is equal to {1} degree Fahrenheit".format (celsius,fahrenheit))
Fahrenheit= 54.
ReplyDeleteCelsius = ((Fahrenheit-32)*5)/9.
print("Temperature in Celsius is: ");
print(Celsius);
Post a Comment
POST Answer of Questions and ASK to Doubt