-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathQuestion1.py
More file actions
27 lines (27 loc) · 1 KB
/
Copy pathQuestion1.py
File metadata and controls
27 lines (27 loc) · 1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#question1
"""firstname=input("Enter your first name: ")
lastname=input("Enter your last name: ")
print("Welcome ",firstname," ",lastname,"!")"""
#question2
"""number_one=int(input("Enter first number: "))
number_two=int(input("Enter second number: "))
print("Number One is: ",number_one)
print("Number Two is: ",number_two)
sum=number_one+number_two
print("Summation of two numbers are: ",sum)
"""
#question3
"""number_one=int(input("Enter first number: "))
number_two=int(input("Enter second number: "))
print("Number One is: ",number_one)
print("Number Two is: ",number_two)
print("Summation of two numbers are: ",(number_one+number_two))
print("Multiplication of two numbers are: ",(number_one*number_two))
print("Difference of two numbers are: ",(number_one-number_two))
print("Quetint of two numbers are: ",(number_one/number_two))"""
#question4
number = float(input("Enter your floating point number: "))
real=int(number)
print("Integer part is ",int(real))
decimal=(number-real)
print("Decimal part is ",str(decimal))