ultimatepp/uppdev/trn/trn.cpp
cxl e6240bf46b Developing Win32 font metrics
git-svn-id: svn://ultimatepp.org/upp/trunk@1355 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2009-07-03 17:29:39 +00:00

21 lines
293 B
C++

#include <Core/Core.h>
using namespace Upp;
int Trn(int x)
{
if(x % 2)
return x + 1;
else
return x;
}
CONSOLE_APP_MAIN
{
for(;;) {
Cout() << "Zadej cislo x: ";
int cislo = atoi(ReadStdIn());
Cout() << "Trn(" << cislo << ") = " << Trn(cislo) << "\n";
}
}