Functions let you organize code into reusable pieces! Your task: Write a function called square that takes an integer and returns its square. Then read a number and print its square using your function.
C++20 sections · 1024 units
Open in CourseChallenge: Square Function
Write your first function