From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,30e0ceaf4e6be70c,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-07-03 22:01:19 PST Path: archiver1.google.com!postnews1.google.com!not-for-mail From: vashwath@rediffmail.com (prashna) Newsgroups: comp.lang.ada Subject: Simple program to find average of 3 numbers Date: 3 Jul 2003 22:01:18 -0700 Organization: http://groups.google.com/ Message-ID: NNTP-Posting-Host: 203.90.112.53 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1057294879 28970 127.0.0.1 (4 Jul 2003 05:01:19 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: 4 Jul 2003 05:01:19 GMT Xref: archiver1.google.com comp.lang.ada:40039 Date: 2003-07-04T05:01:19+00:00 List-Id: Hi friends, What is wrong in the following program which is giving constraint error? procedure average is type ONE_TO_100 is range 1 .. 100; OBJ1, OBJ2, OBJ3, AVG : ONE_TO_100; begin OBJ1 := 70; OBJ2 := 70; OBJ3 := 70; AVG := OBJ1+OBJ2+OBJ3/3; end average; Thanks in advance