Cody

Problem 2798. Beginner's Problem - Squaring

Created by Alan Martinez in Community

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

83.8% Correct | 16.2% Incorrect
Last solution submitted on Mar 23, 2019

Recent Solvers324

Suggested Problems

Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

MATLAB Academy

New to MATLAB?

Learn MATLAB today!