Advertisement
Guest User

Untitled

a guest
Dec 8th, 2016
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. program a2016;
  2. /* This program computes and prints the value
  3. Of an expression */
  4. var
  5. /* declare variables */
  6. a1 , b2a , c, bal2 : integer ;
  7. begin
  8. al = 3 ;
  9. b2a = 4 ;
  10. c = 5 ;
  11. print( c ); /* display c */
  12.  
  13. /* compute the value of the expression */
  14. bal2 = al * ( b2a + 2 * c) ;
  15. print(bal2 ); /* print the value of bal2 */
  16. end.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement