What is output?

C = 1
sum - 0
while (c < 10):
c = c + 3
sum = sum + c

print (sum)​

Answers

Answer 1
11

Explanation:

Please make me Brainliest

Related Questions

Which is a conditional statement?
If it is sunny, we can play ball.
It is sunny today.
It is sunny or rainy.
It is sunny across the street, but not sunny here.

Answers

i believe it is “if it is sunny, we can play ball”

Answer:

it is 1, I know this because i got 100% on my quiz

Explanation:

If an app asks for a user's age, it may be because the app requires a user to be over a certain age to use some of the services it provides. Write a function called checkAge that takes one parameter of type String. The function should try to convert this parameter into an Int value and then check if the user is over 18 years old. If he/she is old enough, print "Welcome!", otherwise print "Sorry, but you aren't old enough to use our app." If the String parameter cannot be converted into an Int value, print "Sorry, something went wrong. Can you please re-enter your age?" Call the function and pass in userInputAge below as the single parameter. Then call the function and pass in a string that can be converted to an integer.
Go back and update your function to return the age as an integer. Will your function always return a value? Make sure your return type accurately reflects this. Call the function and print the return value.
func checkage(age: String)->Int?
{
if let age_type = Int(age)
{
if age_type > 18 {
return "Welcome!"
}
else if age_type < 18 {
return"Sorry, but you aren't old enough to use our app."
}
}
else {
return "Sorry, something went wrong. Can you please re-enter your age?"
}
return age_type
}

Answers

Answer and Explanation:

Here the programming language swift is being used. There is a slight error in the program shown above:

var userInputAge=9

func checkage(age: String)->int?

{

if let age_type = Int(age)

{

if age_type > 18 {

return "Welcome!"

}

else if age_type < 18 {

return"Sorry, but you aren't old enough to use our app."

}

}

else {

return "Sorry, something went wrong. Can you please re-enter your age?"

}

return age_type

}

The program should be revised :

func checkage(age: int?)->String

{

if let age_type = Int(age)

{

if age_type > 18 {

return "Welcome!"

}

else if age_type < 18 {

return"Sorry, but you aren't old enough to use our app."

}

}

else {

return "Sorry, something went wrong. Can you please re-enter your age?"

}

return age_type

}

We call the functions :

checkage(userInputAge)

checkage("15")

Note: we revised the program for errors in the first line of the code where the int optional parameter(int?) was supposed to be used instead of the String parameter in the function. We then called the function using the userInputAge variable defined as the parameter and then we now also used a String as the parameter for calling the function the second time.

Answer:

def checkage(age: "String")->int:

   if age >= 18:

       return "Welcome!"

   return "Sorry, but you aren't old enough to use our app."

   

for _ in iter(list,0):

   myage = int(input("Please enter your age: "))

   if myage is int(myage):

       result = checkage(myage)

       print(result)

       break

   print("Sorry, something went wrong. Enter integer value as age.")

   

Explanation:

The python code above lets the user input the age value for continuous comparison. If the age is an integer, it checks to know if the age is greater than 18 or not. If yes, it returns "Welcome!" else "Sorry, but you aren't old enough to use our app". But if the age is not an integer, it displays the message "Sorry, something went wrong. Can you please re-enter your age?" then prompts the user again for the age.

Note: the ': "String" ' and "->int" is for documentation purposes. They are used to describe the type of parameters (for later) and return value (the former).

what is the norm that psychoanalysis of Freud deviates?

Answers

Answer:

Freud deviates from the norm of current mainstream psychology which has more or less lost its way - if it ever had one - under the influence of the same pressures which produce our dysfunctional politics and our troubled societies at large (technological change, globalisation, and so on).

Explanation:

Creds to Quora

what are the advantages of using a folder?​

Answers

Answer:

1. easy access to files

2. better organization

Explanation:

Other Questions
A spherical balloon has a radius of 7.15 m and is filled with helium. How large a cargo can it lift, assuming that the skin and structure of the balloon have a mass of 930 kg? Neglect the buoyant force on the cargo volume itself. Where did Francisco Pizarro land on his voyage. At Pablos Pizza Pie, medium cheese pizzas cost $12.50, large cheese pizzas cost $15, and a 3-liter bottle of soda costs $2.50. Kevin purchased one bottle of soda and 5 pizzas for his party. If he spent exactly $70, what combination of medium and large pizzas did he purchase? The relationship between the number of hours a plumber works and the total work feeshe charges is proportional. Her fee for 5 hours of work is $350.Which of the following could be combinations of values for the plumber's work hoursand total work fee she charges?Hours 3 - $270Hours 3.5 - $245Hours 6 - $440Hours 7.25 - $530,50 Which seismic waves stay on Earth's Surface?PLS I NEED HELP Mai earns $7 per hour mowing her neighbors' lawns. She also earned $14 for hauling away bags of recyclables for some neighbors. Read the following poem by John Keats. What type of poem is it?Bright star! would I were steadfast as thou artNot in lone splendour hung aloft the night,And watching, with eternal lids apart,Like Nature's patient, sleepless Eremite,The moving waters at their priest-like taskOf pure ablution round earth's human shores,Or gazing on the new soft-fallen maskOf snow upon the mountains and the moorsNoyet still steadfast, still unchangeable,Pillow'd upon my fair love's ripening breast,To feel for ever its soft fall and swell,[xxii]Awake for ever in a sweet unrest,Still, still to hear her tender taken breath,And so live everor else swoon to death.A. haikuB. balladC. odeD. sonnetE. elegy What type of perspective was favored by artists who painted in the international Gothic styleA.) Aerial perspectiveB.) the persons point of viewC.) liner perspectiveD.) the God's - eye view The following linear equation is shown: y = 2% + 5Using this equation, what is the value of the missing space on the tableOy=8Oy=9O y = 18I don't know A series of monthly cash flows is deposited into an account that earns 12% nominal interest compounded monthly. Each monthly deposit is equal to $2,100. The first monthly deposit occurred on June 1, 2008 and the last monthly deposit will be on January 1, 2015. The account also has equivalent quarterly withdrawals from it. The first quarterly withdrawal is equal to $5,000 and occurred on October 1, 2008. The last $5,000 withdrawal will occur on January 1, 2015. How much remains in the account after the last withdrawal? Qu papel juega la capacidad de conocer la verdad en el sentido de la existencia segn el artculo nuestro impulso hacia el sentido? please HELP ASAP What is the missing side, x? Find the sum of the prime numbers less than 21 Which of the following are frequently mentioned goals of the Federal Reserve? Check all that apply. hi again answer these questions lspslsplsplspsldpwkqmeij3k1nh32jn3213123421 PLS HELP ME FAST WILL GIVE POINTS Triangle PQR is transformed to triangle PQR. Triangle PQR has vertices P(9, 0), Q(6, 3), and R(3, 6). Triangle PQR has vertices P(3, 0), Q(2, 1), and R(1, 2). Plot triangles PQR and PQR on your own coordinate grid. Part A: What is the scale factor of the dilation that transforms triangle PQR to triangle PQR? Explain your answer. (4 points) Part B: Write the coordinates of triangle PQR obtained after PQR is reflected about the y-axis. (4 points) Part C: Are the two triangles PQR and P'Q'R' congruent? Explain your answer. (2 points) Ano ang kahulugan ng ginagalawan? Determine the correct hybridization (from left to right) about each central atom in CH3CH2OH.A) 1st C sp3 ; 2nd C sp2 ; O sp B) 1st C sp3 ; 2nd C sp3 ; O sp3 C) 1st C sp ; 2nd C sp2 ; O sp3 D) 1st C sp3 ; 2nd C sp2 ; O sp2 state the doctorine of original evolution. _____ fought against Rome in the Punic Wars