Pseudocode Examples

Pseudocode Examples10 min read

What is Pseudocode

As you know, pseudocode is the way of expressing a program or code so that it could be easily understood by programmers of every programming languages out there.

Pseudocode is an informal high-level description of the operating principle of a computer program or an algorithm

For example, a print is a function in python to display the content whereas it is System.out.println in case of java, but as pseudocode display/output is the word which covers both the programming languages.




So that the programme written in an informal language and could be understood by any programming background is pseudocode.

Hence we can say that the purpose of writing pseudocode is that it is easier for people to understand than any specific programming language code

No standard for pseudocode syntax exists, as a program in pseudocode is not an executable program.

Following are the basic rules before writing pseudocode :

  • Write only one statement per line.
  • Write what you mean, not how to program it
  • Give proper indentation to show hierarchy and make code understandable.
  • Make the program as simple as possible.
  • Conditions and loops must be specified well ie. begun and ended explicity as in given pseudocode examples :

WRITE A PSEUDOCODE TO FIND THE LARGEST OF TWO NUMBERS.

 

WRITE A PSEUDOCODE TO FIND THE SUM OF TWO NUMBERS.

WRITE A PSEUDOCODE TO FIND THE SUM OF THREE NUMBERS.

WRITE A PSEUDOCODE TO FIND THE AREA OF RECTANGLE.

WRITE A PSEUDOCODE TO FIND THE PERIMETER OF RECTANGLE.

WRITE A PSEUDOCODE TO FIND THE AREA OF SQUARE.

 

WRITE A PSEUDOCODE TO FIND THE PERIMETER OF SQUARE.

 

WRITE A PSEUDOCODE TO FIND THE AREA OF CIRCLE.

 

WRITE A PSEUDOCODE TO FIND THE CIRCUMFERENCE OF CIRCLE.

 

WRITE A PSEUDOCODE TO FIND THE AREA OF PARALLELOGRAM.

 

WRITE A PSEUDOCODE TO FIND THE AREA OF TRIANGLE.

 

WRITE A PSEUDOCODE TO FIND THE  AREA OF RHOMBUS.

 

WRITE A PSEUDOCODE TO FIND THE GREATEST OF TWO NUMBERS.

 

WRITE A PSEUDOCODE TO FIND THE GREATEST OF TWO NUMBERS USING TERNARY OPERATOR.

 

WRITE A PSEUDOCODE TO FIND THE GREATEST OF THREE NUMBERS.

 

WRITE A PSEUDOCODE TO FIND THE GREATEST OF THREE NUMBERS.

 

WRITE A PSEUDOCODE TO FIND THE GREATEST OF THREE NUMBERS.

 

WRITE A PSEUDOCODE TO CHECK WHETHER THE ENTERED NUMBER IS EVEN OR ODD.

 

WRITE A PSEUDOCODE TO CHECK EQUIVALENCE OF TWO NUMBERS. USE IF STATEMENT.

 

WRITE A PSEUDOCODE TO FIND THE SMALLEST OUT OF THREE NUMBERS.

 

WRITE A PSEUDOCODE TO CHECK WHETHER THE ENTERED YEAR IS A LEAP YEAR OR NOT.

 

WRITE A PSEUDOCODE TO DISPLAY THE NAMES OF THE DAYS OF A WEEK.

 

WRITE A PSEUDOCODE TO DISPLAY MONTH NAME ACCORDING TO THEIR POSITION.

 

WRITE A PSEUDOCODE TO DISPLAY THE STUDENT NAME ACCORDING TO THEIR ROLL NO.

 

WRITE A PSEUDOCODE TO PRINT THE FIRST FIVE NUMBERS.

WRITE A PSEUDOCODE TO DISPLAY NUMBERS FROM 1 TO 15 USING FOR LOOP.

 

WRITE A PSEUDOCODE TO DISPLAY EVEN NUMBERS FROM 1 TO 14.

 

WRITE A PSEUDOCODE TO DISPLAY UPTO INTEGERS UPTO N.

 

WRITE A PSEUDOCODE TO DISPLAY ALL EVEN NUMBERS UPTO N.

 

WRITE A PSEUDOCODE TO DISPLAY ALL ODD NUMBERS UPTO N.

 

WRITE A PSEUDOCODE TO FIND THE SUM OF SERIES S=1+2+3+….. +N

 

WRITE A PSEUDOCODE TO FIND THE SUM OF SERIES S=1+3+5+…. +N

 

WRITE A PSEUDOCODE TO PRINT THE ALL EVEN BETWEEN 2 AND 100.

 

WRITE A PSEUDOCODE TO PRINT THE INTERGERS 1 TO N USING while LOOP.

 

WRITE A PSEUDOCODE TO PRINT THE ALL EVEN NUMBERS FROM 1 TO N USING while LOOP.

 

WRITE A PSEUDOCODE TO PRINT THE ALL ODD NUMBERS FROM 1 TO N USING while LOOP.

 

WRITE A PSEUDOCODE TO FIND THE SUM OF SERIES S=1+2+3+…….+N

 

WRITE A PSEUDOCODE TO FIND THE SUM OF SERIES S=1+3+5+……+N

 

WRITE A PSEUDOCODE TO PRINT THE NUMBERS FROM 1 TO N USING do….while LOOP

 

WRITE A PSEUDOCODE TO PRINT ALL EVEN NUMBERS FROM 2 TO N.

 

WRITE A PSEUDOCODE TO PRINT ALL ODD NUMBERS FROM 1 TO N.

 

WRITE A PSEUDOCODE TO PRINT THE SUM OF SERIES S=1+2+3+….+N

Leave a Comment