Category:Ayrch: Difference between revisions

no edit summary
mNo edit summary
No edit summary
 
(One intermediate revision by the same user not shown)
Line 1:
{{stub}}{{language|Ultimate++
|exec=machine
|site=https://www.ultimatepp.org/www$uppweb$overview$en-us.html/
|safety=both
|gc=no
Line 79 ⟶ 80:
 
<--- Finished in (0:00.07), exitcode: 0 --->
</pre>
 
 
<big>'''Conditional loop'''</big>
 
<lang Cpp>
#include <Core/Core.h>
#include <stdio.h>
#include <iostream>
 
using namespace Upp;
 
CONSOLE_APP_MAIN
{
int a, b, i;
i = 0, a = 2, b = 7;
while(a < (b + 1)){
i = i + a;
printf("a = %d and i = %d\n",a,i);
printf("%d + %d = %d\n\n",a,b, a + b);
std::cout << b << " - " << a << " = " << b - a << std::endl;
std::cout << std::endl;
a = a + 1;
 
}
const Vector<String>& cmdline = CommandLine();
for(int i = 0; i < cmdline.GetCount(); i++) {
}
}
</lang>