[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y ] [Home]
4chanarchives logo
Help with JavaScript (Beginner)
Images are sometimes not shown due to bandwidth/network limitations. Refreshing the page usually helps.

You are currently reading a thread in /wsr/ - Worksafe Requests

Thread replies: 6
Thread images: 1
Struggling to get this finished, need it done by tomorrow. Any help? It requires loops
>>
>>42839
Try >>>/g/dpt
>>
>>42839
int i=1;
int a=0;
while a<=10{
a = input("Type an integer: ");
if a>10{
break
}
else{
i=1;
for i<=a, i++{
print(i);
}
}
}
The syntax is obviously wrong, but this is the basic idea in a sort of pseudo-code.
>>
>>42846
>int a=0;
>while a<=10{
>if a>10{>break

I think it heard you the first time!
>>
>>42908
heh, yeah in retrospect I'm not sure why I put that conditional in there
>>
>>42841
Anon the sticky specifically states this is where homework shit goes. I don't like retards begging for help on their homework and not figuring this shit out themselves either but eh.
Thread replies: 6
Thread images: 1

banner
banner
[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y] [Home]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
If a post contains personal/copyrighted/illegal content you can contact me at [email protected] with that post and thread number and it will be removed as soon as possible.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com, send takedown notices to them.
This is a 4chan archive - all of the content originated from them. If you need IP information for a Poster - you need to contact them. This website shows only archived content.