Calculate the circle area according to the circle radius , Two decimal places are reserved for the result . among , PI use 3.1415
radius
Area of circle , After decimal point 2 position
25
1963.44
r=eval(input()) pi=3.1415 print("{:.2f}".format(r*r*pi))
Receive two user inputs from the console in two times : The first one is " The person's name ", The second content is " one's innermost thoughts and feelings ". Then form the two input contents into the following sentence pattern and output : ( The person's name ), I want to say to you ,( one's innermost thoughts and feelings )
The person's name one's innermost thoughts and feelings
( The person's name ), I want to say to you ,( one's innermost thoughts and feelings )
Ang Lee You are so talented !
Ang Lee , I want to say to you , You are so talented !
a=input() b=input() print("{}, I want to say to you ,{}".format(a,b))
Calculation 2 Of n Power ,n Input by user
Enter a positive integer
Output a positive integer
5
32
a=eval(input()) print("{}".format(2**a))
This topic requires reading 2 It's an integer A and B, And then output their sum .
Give an addend in a line Give an addend on another line
Output sum values in one line .
18 -48
-30
a=eval(input()) b=eval(input()) print("{}".format(a+b))
Programming reads... From the keyboard 3 Number , Output their sum and average . among , The average value is retained 2 Decimal place .
Integers 1 Integers 2 Integers 3
and , Average
1 2 3
6,2.00
a=eval(input()) b=eval(input()) c=eval(input()) print("{},{:.2f}".format((a+b+c),(a+b+c)/3))