Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- require 'sinatra'
- get('/addition')do
- @first = 3
- @second = 5
- @result = @first + @second
- erb :addition
- end
- get('/multiplication')do
- @first = 2
- @second = 6
- @result = @first * @second
- erb :multiplication
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement