The picture below shows various symbols and the activity they represent.
They are other symbols also used in flowchart but rarely,these are the major ones.
Every programming language has its vocabulary and syntax used when writing in that programming language,the table below shows the keywords that are used when writing a Pseudocode .
Keywords | Usage |
//
| This represents a comment entry that is used to provide additional information about the steps in the pseudocode |
begin……end
| The first statement in a pseudocode is a ‘begin’ and the last an ‘end’.The steps of the pseudocode comes between the begin….end block. |
accept
| This simply accepts an input.for example to accept the number 10,the following statement can be used: accept 10 |
compute
| This is used to calculate the result of an expression,for example to calculate the product of two numbers: compute product as 5 * 5 |
display
| it is used to display an output,for example to display the number ‘25 ‘: display 25 |
if…..else
| This is used when,depending on on a condition,different actions may have to be taken. |
repeat…..until
| This is an iterative construct with a testing statement at the bottom of the iterative set of statements. |
while
| This is an iterative construct with a testing statement at the top of the iterative set of statements |
for( ; ; )
| This is an iterative construct in which a variable is initialized,incremented and an expression is tested in the same line |
this site is amazing for describing the keywords.
ReplyDeletebut you have to post the psuedo codes of the keywords.
you are just posting the details of keyworfs.
For example,
Keyword Psuedo code
input READ,OBTAIN,GET
c
ReplyDeleteUi path training
ReplyDeleteWe at ikxbay are committed to provide industry ready and relevant skill set training to freshers and professionals. Attend 1st 2 live classes for FREE!!
This article gives the light in which we can observe the reality. Bonita Springs Tutoring I like this kind of blog. Thanks for sharing informative information with us
ReplyDelete