Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- PrintLn("Welcome the the calulator");
- PrintLn("Please enter number a :");
- let a = ReadLn();
- let c = ReadLnP("Operator :");
- let b = ReadLnP("Please enter number b :");
- let awnser = 0;
- if c = "+"
- {
- awnser = Int(a) + Int(b)
- }
- if c = "-"
- {
- awnser = Int(a) - Int(b)
- }
- if c = "/"
- {
- awnser = Int(a) / Int(b)
- }
- if c = "*"
- {
- awnser = Int(a) * Int(b)
- }
- let a1 = String(awnser);
- PrintLn("Awnser is %0", a1);
- Pause();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement