but control structures(if... else) also should not be used...... but ur logic is right....
try that!!!!!