Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
bool experience = false;
bool job = false;
void getJob () {
if (!experience)
inc_experience();
else
job = true;
}
void inc_experience () {
if (job)
experience = true;
else
getJob();
} -
kalex3427y@akashvartak hahaha yes, solution to this problem given below
boolean do_freelancing;
while(!get_a_job)
{
do_freelancing = true;
if(do_freelancing)
experience =true;
if(experience) break;
} -
stacked26797ySorry, I could not sleep thinking about this. Here's the recursive version. Syntax needs fixing, but at least the algorithm makes sense...
boolean hasJob = false;
boolean hasExperience = false;
void getJob() {
while (!hasJob) {
gainExperience();
}
}
void gainExperience() {
while (!hasExperience) {
getJob();
}
}
void main() {
getJob();
}
boolean experience = false;
boolean get_a_job;
while(!experience){
get_a_job = false;
while(!get_a_job){
experience = false;
while(!experience){
get_a_job = false;
.....
«To infinity and beyond!»
rant
that's a shit
no job no experience
no experience no job