Example Code

Project Euler Problem 1 Solution using LabVIEW

Products and Environment

This section reflects the products and operating system used to create the example.

To download NI software, including the products shown below, visit ni.com/downloads.

    Software

  • LabVIEW

Code and Documents

Attachment

Overview
This VI shows how to obtain the solution to the first problem of the Project Euler.


Description
This VI solves #1 of the Project Euler Problems. Problem description is: Add all the natural numbers below one thousand that are multiples of 3 or 5.

More info about the Project Euler Problems can be found here: http://projecteuler.net/


Requirements

  • LabVIEW Base Development System 2012 (or compatible)


Steps to Implement or Execute Code

  1. Open VI “Project Euler Problem 1 Solution 2012 NIVerified.vi”.
  2. Run the program.

 

Additional Information or References
VI Block Diagram

キャプチャ.PNG

 

 **This document has been updated to meet the current required format for the NI Code Exchange.**

J Newk
Systems Engineer
National Instruments

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.