# Exercise 4
Use string interpolation to generate the following output.
Dollar was priced at PKR 163
Dollar is now priced at PKR 159
Dollar has dropped
Another example
Dollar was priced at PKR 155
Dollar is now priced at PKR 165
Dollar has increased
1
2
3
4
5
6
7
8
9
2
3
4
5
6
7
8
9
# Hint
int price1 = 163;
int price2 = 159;
int price3 = 155;
int price4 = 165;
1
2
3
4
2
3
4
# Instruction
You have to use ?: ternary operator to print "dropped" and "increased".
← Exercise 3 Exercise 5 →