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

New to MATLAB?

Problem 2274. Find the square of the sum of the digits of a number

Created by Debopam

If 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

Tags

Problem Group

Solution Statistics

43 correct solutions 46 incorrect solutions
Last solution submitted on Aug 20, 2015

Problem Comments

Solution Comments