Easy programing language .'C' language Dennis Ritchie
1970
Bell Telephone
'C' language
"
(flowchart)"
2.
( ALGORITHM ) (ALGORITHM):
ఒక క
ఒక క
క
"
" (
ఒక general-purpose
)
"
ఒక
ఒక క "
"
ఏ programing language (algorithm)
క
Base ఏ
క
(algorithm) (algorithm) క
క
క
క
క . Language Programining language
(example:c,c++,java..) Example: ఒక Problem
క
ఏ
Problem1: Number
add
(a=2 b=3 c=a+b) ?
solution:
step1: start step2:
(a=2)
step3:
(b=3)
step4:
nembers add
step5: step6: IN ENGLISH
print / display add end
add=a+b
step1: start step2: read first number(a=2) step3: read second number(b=3) step4: add above two number i.e add=a+b step5: diplay / print add step6: end : ఏ
start problem1
steps
step1
start
Slove
Problem
ఏ
.
.
Ending క
start
last step(step6)
.
.
End
problem 2: క
Numbers
a=2 b=3
(find the biggest number from the given two numbrs a=2 b=3) solution:
step1: Start step2: step3:
a=2 b=3
step4:
a>b
step5: correct step6: correct step7:
a క
print
b
print
end
IN ENGLISH step1: Start step2: Read a=2 step3: Read b=3 step4: if a>b = true then step5: display a is big go to step7
step6: else display b is big step7:end : ఏ
start
problem1
step1
start
Reading numbers. a>b .
correct
decide end
next step5
క
decide
step2 & step3 numbers a
step6
. a>b correct b
.
step
.
.
step5
క
step7 క
step6
3.
(FLOW CHAT) (FLOW CHAT): క
క
క .
క
(flowgraph)
boxes
symbols
(operation)box boxes
symbols .ఈ
క క
arrow
Arrow connect
. connect algorithm
figure క
symbols and boxes
(flow chat )
Examples
Example: Problem 1: Number
add
(a=2 b=3 c=a+b) ?
Flow Chat (Draw a Flow Chat Diagram For Addition Of Two Numbers) solution1:
ఏ
:
problem1 .
start step1
start
2 & 3 steps
5 th steps
క ఏ
.
4 step
output
[Rectangle] print
[parallelogram] start
oval క
క
perform .
క
.
values
[parallelogram] addition
.
Ending క
. .
last step
(step6)
క
End
oval
problem 2:
క
Numbers
a=2 b=3 .
Flow Chat
(find the biggest number from the given two numbrs a=2 b=3) solution1:
:
ఏ
problem1 .
start step1
2 & 3 steps
క step
start
క
.
oval
values input [parallelogram]
condition
.
check
. క
4 A
B
క Diamond
CHECK 6 th steps
output
Ending క
start
ఏ
. .
క
End
క
print
[parallelogram]
.
last step (step7)
oval
4.
( Examples on Algorithm )
Example 1: ఒక (1) N
క
Number
add
?
(write an algorith for adding number from 1 to N?)
step1: start step2:Read N; (N is the value up to we can add) step3:we want add values from 1 to N so take SUM=0; step4:Now we want check condition IF ( N != 0) Then GOTO STEP 5
if else
GOTO STEP 7.
step5: SUM=SUM+N step 6: N=N-1 GOTO step 4. step7:Display SUM step8: end : ఏ
start
step1
start
.step2
add
క add క
next 1 value SUM 0
example N
క
step 5
3
N=N-1
GOTO STEP 4
N
0 క
SUM
value
క
క
0
3 ( SUM=0+3).
( N =3-1) . .
.
.
SUM=SUM+N
SUM 2
క
condition N!=0 check
NEXT STEP
STEP 4
N
.NEXT STEP
step 7 now Step 4
N
1
క
1
3!=0 CORRECT
PERFORM STEP 6
క
క
N =3
problem1
problem
step 2
N
.
STEP4
CONDITION
CHECK
NEXT STEP
STEP 6 SUM
STEP 4 VALUE
PERFORM
N
0 AYE
. క
N =0
step 7
Dispaly
5.
Examples on Flowchart
Example 1: ఒక (1)
LOOPING
N
క
Number
add
?
(write an algorith for adding number from 1 to N?) Solution :
.
: ఏ step1
start start
add
.step2
N
క add క
0
క
step 5
క N
problem
problem
step 2
next 1 value SUM
.
1 0
Arrow
1
N
value
క
క
క .
.NEXT STEP step 7
క
.
example N
క
N =3 3
క
3!=0 CORRECT
PERFORM STEP 6
Arrow
SUM N
GOTO STEP 4 CHECK
SUM 2
STEP 6
Arrow
step 7
PERFORM STEP 4
6..
3 ( SUM=0+3).
STEP 4
SUM
SUM=SUM+N
( N =3-1) .
Arrow NEXT STEP
condition N!=0 check NEXT STEP
0
N=N-1
Arrow
now Step 4
. .
N
LOOPING క
0
VALUE
క
STEP4
. N =0
Dispaly
( C language Introduction ) క
C Language
క
ఏ
data
. క
ఏ
(or ) ఏ
( key )
క )
(
)
.ఈ access
క
.
Language's
3
:
Low Level Language: క
క
.
ఏ
0 , 1 .
క
ఏ
ఒక
.
), 1 (ఒక )
.ఈ
(Memory location Address )
ఏ
1.
( data )
(క
. ఒక
)ఏ
(
క
0 (
Low Level Language ఏ
.
.
క 0, 1
క
.ఈ ,ఒక క
. :
క
ఈ
ఏ
0001 0111 0100 ఈ Low Level Language క 2.
క
క
. క
Middle Level Language : Middle level languages
programs
MOV ADD SUB DIV క
Direct ఈ
క
language
క
క
క
క
.
క
క
/ . ఈ language
High level language
క
GENERAL
programs (C , C++,
computer
High
.
.క
క languages
Machine level
క
.
High level language :
JAVA ... )
ఒక
programs computer
low level
క
3.
, Registers
క
ఈ
.
computer
క
. computer programming Low
.క
Compiler/ Interpreter
( MACHINE LEVEL LANGUAGE / LOW LEVEL LANGUAGE/ BINARY LEVEL LANGUAGE )
.
"C" Language
Program
Low level
"C"
Language
. ఈ Compiler
ALT+F9 Press Create
. ఈ File
Program
Output
High
Level
Low level
Low Level క
.
.
Program
Compiler
High Level Language
Ctrl+F9
Press
Level
Program .
Program
Low
FileName .Obj క
Folder
Output
. Program Extra .
File
క
:
క
:
7.
First Program In C ఏ Programming language
Program
ఒక
C Language
Write a Algorithm To print a message "HELLO WORLD "?
STEP1: Start Step2:
print HELLOWORLD
STEP3: END Same
"C " Write a Program to print Hello world message At output ?
Thank you for interesting in our services. We are a non-profit group that run this website to share documents. We need your help to maintenance this website.