<P> These example programs calculate the factorial of 5 using their respective languages' syntax for a do - while loop . </P> <Table> <Tr> <Td> </Td> <Td> The Wikibook Ada_Programming has a page on the topic of: Control </Td> </Tr> </Table> <Tr> <Td> </Td> <Td> The Wikibook Ada_Programming has a page on the topic of: Control </Td> </Tr> <P> Early BASICs (such as GW - BASIC) used the syntax WHILE / WEND . Modern BASICs such as PowerBASIC provide both WHILE / WEND and DO / LOOP structures, with syntax such as DO WHILE / LOOP, DO UNTIL / LOOP, DO / LOOP WHILE, DO / LOOP UNTIL, and DO / LOOP (without outer testing, but with a conditional EXIT LOOP somewhere inside the loop). Typical BASIC source code: </P>

What are the ways to implement infinite loop using do while statement in java