Problem 2798. Beginner's Problem - Squaring
Try out this test problem first.
Given the variable x as your input, square it by two and put the result in y.
Examples:
Input x = 2 Output y is 4
Input x = 10 Output y is 100
Solution Stats
Problem Comments
-
1 Comment
Daniel Strobel
on 17 Mar 2022
I liked this problem.
Solution Comments
Show commentsProblem Recent Solvers757
Suggested Problems
-
Read a column of numbers and interpolate missing data
2282 Solvers
-
Reverse the elements of an array
1022 Solvers
-
Replace multiples of 5 with NaN
440 Solvers
-
681 Solvers
-
573 Solvers
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!