Online course
Online course
Write a program that shows the result of the calculation
a. 12 – 7
b. 24 / 3 + 9
c. 3 * 43 – 2
Write a program showing the text: Hi! How are you?
Write a program that ask an entire value and return its square.
1/ What does this algorithm returns when x=2 ?
2/ Express in terms of x what is returns by this algorithm.
a. print(12-7)
b. print(24/3+9)
c. print(3*43-2)
print(“Hi! How are you?”)
N=int(input("value of N"))
print(N**2)
1/ This algorithm returns 4
2/ At the end, the algorithm returns x²-x+2