From: Franck <franck.collineau@francetelecom.com>
To: caml-list <caml-list@inria.fr>
Subject: [Caml-list] Great Beginner
Date: Fri, 09 Nov 2001 14:44:42 +0100 [thread overview]
Message-ID: <3BEBDDCA.1060307@francetelecom.com> (raw)
Hi!
I want to calculate the sum of the n first numbers.
I've written this code:
let x =0;;
let somme n =
for i=1 to n
do
x=x+i
done;;
It doesn't work.
Why ?
Thanks
Franck
--
___________________________________
Franck Collineau
FTR&D DMI/TAM/TIL
4 rue du Clos Courtel
B.P. 59
35512 Cesson Sévigné Cedex
tél: 02 99 12 43 97
franck.collineau@francetelecom.com
___________________________________
-------------------
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
next reply other threads:[~2001-11-11 10:36 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-11-09 13:44 Franck [this message]
2001-11-11 11:34 ` Remi VANICAT
2001-11-10 15:29 ` Diego Olivier Fernandez Pons
2001-11-12 6:39 ` Remi VANICAT
2001-11-12 8:13 ` Diego Olivier Fernandez Pons
-- strict thread matches above, loose matches on Subject: below --
2001-11-09 14:10 Krishnaswami, Neel
2001-11-09 11:08 Franck
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3BEBDDCA.1060307@francetelecom.com \
--to=franck.collineau@francetelecom.com \
--cc=caml-list@inria.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox