Experiment #7

Flow Control Instructions

  • Objective
  1. Compare Instructions
  2. Loop Instructions
  3. Jump instructions
 

 

  • Lab Work:

             Write a program that reads a string of maximum of 50 char. and display a list of the characters that occurred within the string and their counts. Note: do not display characters  with count=0.

 

Example:

Input:  Computer Organization and Assembly Language.

Output: A:  6

              B: 1 

              C: 1   

              D: 1    

              E: 3    

              G:3

              ........ and so on.