Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Whats wrong with my code?
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
Miko99




PostPosted: Fri Mar 28, 2003 9:20 am   Post subject: Whats wrong with my code?

var high:int:=-9999
var low:int:=9999
var num:int
var counter:real

loop
counter:=counter+1


put "Enter in a number"
get num
if (num > high)then
high:=num
cls
end if
exit when counter:=6
end loop
put "The Low number is: ",num
Sponsor
Sponsor
Sponsor
sponsor
Delta




PostPosted: Fri Mar 28, 2003 9:33 am   Post subject: Here you go

code:

var low:int:=9999
var num:int

for i : 1.. 6
    put "Enter in a number"
    get num
    if (num < low)then
        low := num
    end if
    cls
end for
put "The Lowest number is: ",low


MOD Edit: Gave some bits for the help. -Asok
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 2 Posts ]
Jump to:   


Style:  
Search: