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

Learn moreOpportunities for recent engineering grads.

Apply TodayIf a number (n) is provided as an input, find the square of the sum of the digits of the number.

Example

If n = 21, the answer will be square of (2 + 1) = 9

49 correct solutions
58 incorrect solutions

Last solution submitted on May 06, 2016

1 Comment

Joseph Pauwels
on 13 May 2014

-4 + 3 +1=0 right. I don't remember you saying the absolute value in the instructions.

1 Comment