File size: 314 Bytes
b926160
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import streamlit as st

def main():
    st.title("Addition of Two Numbers")
    
    num1 = st.number_input("Enter first number:")
    num2 = st.number_input("Enter second number:")
    
    result = num1 + num2
    
    st.write(f"The sum of {num1} and {num2} is: {result}")

if __name__ == '__main__':
    main()