Jump to content

Category:Ayrch: Difference between revisions

no edit summary
mNo edit summary
No edit summary
Line 79:
 
<--- 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>
 
 
Cookies help us deliver our services. By using our services, you agree to our use of cookies.