Answer:
s = input("Input a float: ")
print("{:12.2f}".format(float(s)))
Explanation:
- Read a number from user using the input function of Python.
- Use the format function of Python to correctly format the output according to the given requirements.
- Note: Use Python 3.6 or above for this code to run without any issue.
Output:
Input a float: 1234.56789
1234.57
// C++ switch
// It can also be used for JAVA, C#
switch(age){
// here age will be sent by the function in which it is used
// case to check the age<2
case(age<2 && age>0):
// printing the line
cout<<"ineligible";
// case to check the age ==2
case(age==2):
// printing the line
cout<<"toddler";
// case to check 3-5
case(age>=3 && age<=5):
cout<<"early childhood";
// case to check 6-7
case(age==6 || age==7):
cout<<"young reader";
//case to check 8-10
case(age>=8 && age<=10):
cout<<"elementary";
// case to check 13
case(age==13):
cout<<"impossible";
//case tocheck 14-16
case(age>=14 && age<=16):
cout<<"high school";
// case to check 17 or 18
case(age==17 || age==18):
cout<<"scholar";
//case to check >18
case(age>18);
cout<<"ineligible";
// default case
default:
cout<<"Invalid age";
}
Read more on Brainly.com - brainly.com/question/12981906#readmore
Several different alkane fruits.
watermelon cantaloupe mango pears grapes passion fruit dried fruits like dates and apricots figs and raisins are also considered heavy alkaline foods apples, fresh apricots bananas berries and avocados.... list goes on.