Pseudocode
-Notation resembling a simple program language.-Used in program design
pseudocode components
- variable
-Input/Output
-Assignment
-Seletion
-Repetition
Variables :- 2 Types of variale
1. Assignment Operaion
2. Read operation
Eg:
X=3
X :- variable
= :- Assignment Operator
3 ;- 1st value
Read Operator : Tranfer the data bits to be stored in memory to the data input lines.
Write pseudocode that will read first ten numbers and calculate that total number?
Begin
input sum=0,num=1
while num <=10
sum=sum+1
Print (sum,end = " ")
End
Comments
Post a Comment