Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $a = 3;
- $b = 6;
- $op = 1;
- if($op==1)
- {
- print $a+$b\n;
- }
- elsif($op==2)
- {
- print $a-$b\n;
- }
- elsif($op==3)
- {
- print $a*$b\n;
- }
- elsif($op==4)
- {
- print $a/$b\n;
- }
- else
- {
- print "oh my god";
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement