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 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,b7e91a32073f0674,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-10-23 13:47:36 PST Path: archiver1.google.com!news2.google.com!news.maxwell.syr.edu!in.100proofnews.com!in.100proofnews.com!nsnmrro1-lo.nuria.telefonica-data.net!nsnmpen1-lo.nuria.telefonica-data.net!telenews.teleline.es!not-for-mail X-Trace-PostClient-IP: 80.39.236.124 Message-ID: <3F983E65.2080407@terra.es> From: "@{-_-}@" User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; es-ES; rv:1.0.1) Gecko/20020823 Netscape/7.0 X-Accept-Language: es-es, es MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: whats semicolon? Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Date: Thu, 23 Oct 2003 20:47:35 GMT NNTP-Posting-Host: 10.20.31.4 X-Complaints-To: usenet@teleline.es X-Trace: telenews.teleline.es 1066942055 10.20.31.4 (Thu, 23 Oct 2003 22:47:35 MET DST) NNTP-Posting-Date: Thu, 23 Oct 2003 22:47:35 MET DST Organization: Terra Networks Xref: archiver1.google.com comp.lang.ada:1543 Date: 2003-10-23T20:47:35+00:00 List-Id: Im triying to develop a code in ADA. Im a newbie :). This code must ouput a series number. If I try a number N lagger than nought the program must ouput a progressive series number from 1 as far as N. If I try a number N smaller than nought, the program must output a progressive series number from -1 as far as N. If I try nouth the program must output "ZERO". I tried the following intructions: with Text_Io, Ada.Integer_Text_IO; use Text_Io, Ada.Integer_Text_IO; procedure Practica1 is n: integer; c: integer :=0; begin put ("Escribe un numero entero: "); get (n); if n = 0 then put("cero") else IF N > 0 then for c in 0..n loop put (c); end loop else for c in -1..n loop put (c); end loop end if end if end Practica1; When I try to compile it, the objectada show the following error: practica1.adb: Error: line 20 col 2 Parse error: expected SEMICOLON, got ELSE, Inserting SEMICOLON Whats SEMICOLON? Thx to community!! gretting2all!!!