- 1
Input 2 and output square of 2 how to make a programme
Print(2**2)
4 Respuestas
+ 6
To the task you mentioned, you have to use input() function and assign the result of that to a variable. For doing output use the print() function, and an expression that calculates the square of the value stored in the variable from input.
+ 4
Abdul, now put it in python code 😊. As you have started to go through the python tutorial, I suppose you will use python.
0
Which programming language do you want to use?
0
Input:
Enter number:2
Output:
Square of number 2 is 4