Forum FAQForum FAQSearchSearch MemberlistMemberlist Forum ignore listForum ignore list RegisterRegister ProfileProfile Log in to check your private messagesLog in to check your private messages Log inLog in
JavaScript - molim pomoć

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    mi3dot.org Forum Index -> Client-side
View previous topic :: View next topic  
Author Message
0viking0



Joined: 10 Sep 2003
Posts: 214
Location: Zagreb - Croatia

PostPosted: 21.04.2005 13:31    Post subject: JavaScript - molim pomoć Add user to your forum ignore list Reply with quote

...ovako, imamo vježbe iz Java Script-a. na faksu, a ja za programiranje nisam nadaren, pa molim ljude dobre volje za pomoć

Vježbe su glupave, al evo:

Ovo bi trebao biti program za ispis najvećeg broja Exclamation Question no nešto ne štima. Negdje sam nešto promašio, ne znam što Question Molim Vas pomoć. Unaprijed zahvalan

<HTML>
<HEAD>
<TITLE>Vjezba</TITLE>
<SCRIPT LANGUAGE ="JavaScript">
var n = parselnt (prompt ("Koliko brojeva zelis upisati?";""));
var polje = new Array ();
for (var i=0; i<n;i ++)
{polje [i] = parse Float (prompt("Upisi broj?";""))i}
max = polje[0]
for (var i=1; i<n; i ++)
{
if (polje [i]>max)
{max = polje [i];}
}
alert ("Najveci broj je "+max+","");
</SCRIPT>
</HEAD>
</HTML>


Drugi dio zadatka je taj da se ovaj kod prilagodi tako da se u program upisuje n brojeva, te da se ispiše njihova suma
Exclamation

FALA SVIMA UNAPRIJED

_________________
AND REMEMBER, KGB STILL WATCHING YOU
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    mi3dot.org Forum Index -> Client-side All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group