Pseudocode is a agency of writing algorithms that resemble high-level programming languages. Pseudocode uses a linguistic communication that nigh resembles a programming language. Usually pseudo-code uses a linguistic communication that is universally tardily to sympathise together with also to a greater extent than concise than algorithms. Pseudocode contains a description of a reckoner programming algorithm that uses the uncomplicated construction of roughly programming languages but the linguistic communication is exclusively intended to live on readable humans. So that pseudocode tin non live on understood yesteryear the computer. So that pseudocode annotation tin live on understood yesteryear reckoner together with thus it must live on translated get-go give-up the ghost syntax of certainly reckoner programming language.
In pseudocode, at that spot is no official measure syntax. Therefore, this pseudocode
tin live on applied inwards diverse programming languages. It is recommended to role usually used keywords such as: if, then, else, while, do, repeat, for, etc. The wages of using pseudocode annotation is the repose of translating to programming linguistic communication notation, because at that spot is correspondence betwixt each pseudocode together with programming linguistic communication notation.
The construction of pseudocode writing is to a greater extent than oftentimes than non the same every bit the writing structure
algorithm yesteryear using descriptive judgement that starts from championship / header,
announcement / lexicon together with terminate amongst description. Although at that spot is no particular syntax inwards writing pseudocode, but sometimes pseudocode is written using the agency or agency of writing from several existing programming languages, such every bit Fortran, Pascal, C together with others.
Here is an example of pseudocode writing using the agency of writing roughly programming languages:
do i=0to100
set flag to true
if i is divisible yesteryear 3
print ”Tik”
set flag to false
if i is divisible yesteryear 5
print ”Tok”
set flag to false
if flag, impress i
print a newline
end do
for i:=0to100 do
set flag to true;
if i is divisible yesteryear iii then
print ”Tik”;
set flag to false;
if i is divisible yesteryear five then
print ”Tok”;
set flag to false;
if flag, impress i;
print a newline;
end
for(i=0;i<=100;i++){
set flag to true;
if i is divisible yesteryear 3
print ”Tik”;
set flag to false;
if i is divisible yesteryear 5
print ”Tok”;
set flag to false;
if flag, impress i;
print a newline;
}
Similarly this article.
Sorry if at that spot is a incorrect word.
The terminate of give-and-take wassalamualaikum wr. wb
Referensi :
In pseudocode, at that spot is no official measure syntax. Therefore, this pseudocode
tin live on applied inwards diverse programming languages. It is recommended to role usually used keywords such as: if, then, else, while, do, repeat, for, etc. The wages of using pseudocode annotation is the repose of translating to programming linguistic communication notation, because at that spot is correspondence betwixt each pseudocode together with programming linguistic communication notation.
The construction of pseudocode writing is to a greater extent than oftentimes than non the same every bit the writing structure
algorithm yesteryear using descriptive judgement that starts from championship / header,
announcement / lexicon together with terminate amongst description. Although at that spot is no particular syntax inwards writing pseudocode, but sometimes pseudocode is written using the agency or agency of writing from several existing programming languages, such every bit Fortran, Pascal, C together with others.
Here is an example of pseudocode writing using the agency of writing roughly programming languages:
Fortran style
program TikTokdo i=0to100
set flag to true
if i is divisible yesteryear 3
print ”Tik”
set flag to false
if i is divisible yesteryear 5
print ”Tok”
set flag to false
if flag, impress i
print a newline
end do
Pascal style
procedure TikTokfor i:=0to100 do
set flag to true;
if i is divisible yesteryear iii then
print ”Tik”;
set flag to false;
if i is divisible yesteryear five then
print ”Tok”;
set flag to false;
if flag, impress i;
print a newline;
end
C style
void part TikTokfor(i=0;i<=100;i++){
set flag to true;
if i is divisible yesteryear 3
print ”Tik”;
set flag to false;
if i is divisible yesteryear 5
print ”Tok”;
set flag to false;
if flag, impress i;
print a newline;
}
Similarly this article.
Sorry if at that spot is a incorrect word.
The terminate of give-and-take wassalamualaikum wr. wb
Referensi :
- Ebook Logical together with Algorithm