► Algoritm general pseudocod :
scrie "Introdu numar de caiete"
citeste n
scrie "Introdu pret caiet"
citeste pn
scrie "Introdu numar coperte"
citeste m
scrie "Introdu pret coperte"
citeste pm
total ← n*pn + m*pm
scrie total
►Rezolvare :
n ← 6
pn ← 3
n ← 5
pm ← 2
total ← 6*3 + 5*2 = 28