From d62ba829dc3a54edc46b7deb581dd244713393f5 Mon Sep 17 00:00:00 2001 From: mjfernez Date: Sun, 2 Dec 2018 19:12:42 -0500 Subject: add code --- euler1.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 euler1.c (limited to 'euler1.c') diff --git a/euler1.c b/euler1.c new file mode 100644 index 0000000..d89956e --- /dev/null +++ b/euler1.c @@ -0,0 +1,13 @@ +#include +#include +//Problem 1: multiples of 3 and 5 +int main(){ + int max = 1000; + int i; double sum; + + for (i=0;i