Problem 170. First N Perfect Squares

Description

Return the first N perfect squares

Example

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

Solution Stats

67.02% Correct | 32.98% Incorrect
Last Solution submitted on Jun 11, 2024

Problem Comments

Solution Comments

Show comments

Problem Recent Solvers840

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!