Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and beginning April 20th, 2021 (Eastern Time) the Yahoo Answers website will be in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.

Any programmers in here? I am writing a program and got stocked in infinity the loop.?

I need help to debug the process

If bible is true then

Bible says so

If bible says so then

Bible is true

Else

Please keep praying and worship (some how I can’t get to this line)

End if

9 Answers

Relevance
  • 1 decade ago
    Favorite Answer

    There are six phases in a compiler

    Scanner

    Parser

    Semantic analyser

    Intermediate code generator

    Code optimizer &

    Code generator

    They work with the help of error handler and Symbol table

    Your program was run on the compiler provided to me by my guide in spirituality.

    A hella lott of errors.

    Parser:

    1.File extension not specified

    2.#include<stdio.h>, #include<bible.h> and other inclusions missing

    3.Statement inside else gets no arguments

    4.Endif missing

    Semantic Analyser

    1. Once you include bible.h library file,you cant use command that questions the commands in Bible.h. So better develop another interpretation.

    2. Logical error in code.

    Fixing:

    Replace the code by the following lines and it makes the code more efficient than you can imagine.

    read(bible,brain,chapters);

    Extract jist;

    do not pray;

    lead or try to lead a lif like that of jesusas said in bible;

    shower love and affcton on all;

    Ouput:

    Warless, crimeless, loveable and cute earth(all ways and allways)

    To Religious Christians,

    I did not want to mock at the religion. i respect it. But bible as it is cannot be taken as the gospels contradict each other. Morover I answerd in the same language.To quote Mahatma gandhi "if every christian was christlike, the world would be christian". He was more christ like han most christians as said by many christians(I do not belong to the relgion but like his moral teachings. Will never convert ).

  • Anonymous
    1 decade ago

    If bible is true then

    Bible says so

    {

    If bible says so then

    Bible is true

    Else

    Please keep praying and worship

    }

    End if

    alternate:

    If bible is true then

    Bible says so

    Else If bible says so then

    Bible is true

    Else

    Please keep praying and worship

    End if

  • 1 decade ago

    Your second If statement isn't needed, it's refering to something you've already stated. And your else statement makes no sense. Also, you forgot to declare your variables.

    It should probably read:

    If bible = true then

    Bible says so = true

    { If bible says so = true and

    $worship = true

    then "Please keep praying and worship"

    Else

    soul = "Hell, sorry"

    End If

    }

    End if

    Depending on what your scripting language is, of course.

  • 1 decade ago

    Insert "If Bible is False then"

    "Please keep praying and worship"

    between Bible says so and the next line "If Bible says so"

    Metaphorically I think this is correct.

  • How do you think about the answers? You can sign in to vote the answer.
  • 1 decade ago

    the problem is that this isn't a loop. A program just executes once. You'd have to add

    person="fundie";

    while (person=fundie){

    If (bible=="true"){

    Bible= "says so";

    }; //end if

    If (bible =="says so"){

    bible = "true";

    }; //end if

    else(){

    person="rational";

    }; // end else

    }; // end while

    hurr

    not to mention that your logic says that "the bible is true if the bible says it is true" which is a non sequitir

  • 1 decade ago

    put a break or continue command to get out of the loop

  • 1 decade ago

    hey stupid its the RELIGEON AND SPIRITUALITY section, not the geek squad.

    sorry that wasnt very christian of me but geez man.

  • 1 decade ago

    This is not programming..

    or is it?

  • WHY IS YOUR SON A QUEER?

Still have questions? Get your answers by asking now.