Struggling to get this finished, need it done by tomorrow. Any help? It requires loops
>>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.