Problem 170. First N Perfect Squares

Description

Return the first N perfect squares

Example

    input = 4;
    output = [ 1 4 9 16 ];

Solution Stats

67.2% Correct | 32.8% Incorrect
Last Solution submitted on Oct 09, 2024

Problem Comments

Solution Comments

Show comments

Problem Recent Solvers854

Suggested Problems

More from this Author56

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!