Anonymous user
Loops/While: Difference between revisions
m
Added ColdFusion implementation.
(added Fortran) |
m (Added ColdFusion implementation.) |
||
Line 27:
i /= 2;
}</c>
=={{header|ColdFusion}}==
Remove the leading space from the line break tag.
With tags:
<cfset i = 1024 />
<cfloop condition="i GT 0">
#i#< br />
<cfset i /= 2 />
</cfloop>
With script:
<cfscript>
i = 1024;
while( i GT 0 )
{
writeOutput( i + "< br/ >" );
}
</cfscript>
=={{header|D}}==
|