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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,90f687f65a66617e X-Google-Attributes: gid103376,public From: dewar@merv.cs.nyu.edu (Robert Dewar) Subject: Re: Simple ADA/C Question Date: 1997/02/27 Message-ID: #1/1 X-Deja-AN: 221849854 References: Organization: New York University Newsgroups: comp.lang.ada Date: 1997-02-27T00:00:00+00:00 List-Id: AE asks <> your design is defective, to accept any character other than y as a terminating character is a bad idea. In this case, the character read is the period (if you input 21.35, the get of an integer will read only the 21), and your program is working exactly as you intend (only though I don't think you exactly intended this effect :-)