LabVIEW Digest Challenge 2

Hi Everyone and welcome to the second LabVIEW Digest Challenge! We had some excellent responses from the first challenge so I hope you’re all ready for another! You can win a free certification exam of your choice!

 

Email your entries to LabVIEWDigestCompetition@ni.com

 

The Challenge – Reverse Factorials:

Everyone is probably familiar with a factorial. 5 factorial is:

5! -> 5 x 4 x 3 x 2 x 1 = 120

 

For this challenge reverse it! Write LabVIEW code that tells us if our input number is a factorial or not.

 

If the number is a factorial it should return 'x!' where x is the factorial number.

E.g. 120 is 5 factorial, return '5!'

 

If the number is not a factorial it should return 'NONE'

 

The code should handle input numbers up to 9,223,372,036,854,775,807 – consider your data types!

 

Examples:

 

1.png

 

2.png

 

3.png

 

4.png

 

 

Close date: Monday 17th July

Please note the competition is only open to LabVIEW users in Europe, Middle East, India and Africa. 

Competition Rules

 

Happy coding!

Charlotte

 

(6,233 Views)