Problem 170. First N Perfect Squares

Description

Return the first N perfect squares

Example

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

Solution Stats

67.27% Correct | 32.73% Incorrect
Last Solution submitted on Mar 08, 2024

Problem Comments

Solution Comments

Show comments

Problem Recent Solvers822

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!