0017 Functions Sample 2 by Abdullah06444 - 1

Games & Projects

Unknown VersionUnknown LicenseUpdated 3 days agoCreated on September 18th, 2020
Go to source


Sample Exercise

You write a function that determines whether a given number is a pentagonal number or not. For this purpose, you will write isPentagonal function, which takes a positive integer and returns 1 if the given number is a pentagonal number; returns 0, otherwise. A number of sample pentagonal numbers are depicted below:


Show all projects by Abdullah06444