diff --git a/main.rb b/main.rb index bf755c8..785309b 100644 --- a/main.rb +++ b/main.rb @@ -6,15 +6,13 @@ 3 = 4 numbers (doesnt work yet)" numbers = gets.chomp.to_i if numbers == 1 - puts "what operator are we using?(only + works currently)" -operator = gets.chomp.to_i -if operator == + - puts "What are the numbers used?" - puts "a =" - number_a = gets.chomp.to_i - puts "b =" - number_b = gets.chomp.to_i - final = number_a + number_b - puts "FINAL RESULT: #{final}" -else puts "Invalid."end -else puts "Currently not available."end \ No newline at end of file + puts "what operator are we using?(only plus works currently)" + operator = gets.chomp + if operator == "plus" + puts "Enter your numbers." + number_a = gets.chomp.to_i + number_b = gets.chomp.to_i + final = number_a + number_b + puts "Final result: #{final}" + end +end \ No newline at end of file