int perimeterSquare(int a)
      {
        int perimeter = 4*a;
        return perimeter;
      }
      

      Cpp language logo
      Perimeter of square

      Cpp recipes

      The code declares and returns an integer that represents the perimeter of a square whose sides are defined by the value of the parameter a.

      0 Comments

        Add Comment

        Log in to add a comment

        Codiga - All rights reserved 2022.