calci / app.py
itsmusharaf007's picture
Update app.py
b6837c5
raw
history blame contribute delete
758 Bytes
import streamlit as st
st.title('calci of mushu')
number1 = st.number_input('enter the first number ')
number2 = st.number_input('enter the second number ')
operation = st.selectbox('select your option for calculation',['+','-','*','%'])
if st.button('calculate'):
if operation=="+":
result=number1 + number2
st.write('the addition of',number1,'and',number2,'is =',result)
elif st.operation=="-":
result=number1 - number2
st.write('the sub of',number1,'and',number2,'is =',result)
elif operation=="*":
result=number1 * number2
st.write('the multiplication of',number1,'and',number2,'is =',result)
elif opeartion=="%":
result=number1 % number2
st.write('the remainder of',number1,'and',number2,'is =',result)