Quick Print – CSKC
Sign In

Search

siteicon
Code Learning #CPP#2318 Back

Age based discount using ternary operator

Solving age based discount problem with ternary (three operands) operator.

Source Code

		 

Run Output

The discount rate is 10 %