2022-08-19 15:59:36 +02:00
|
|
|
// Copyright (C) 2016 The Qt Company Ltd.
|
2022-12-21 10:12:09 +01:00
|
|
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
|
2008-12-02 12:01:29 +01:00
|
|
|
|
2008-12-16 17:06:13 +01:00
|
|
|
function cube(a)
|
|
|
|
|
{
|
2009-04-07 13:38:19 +02:00
|
|
|
var x = a * a * a;
|
2009-04-07 16:39:17 +02:00
|
|
|
x = x + 1;
|
|
|
|
|
x = x - 1;
|
2009-04-07 13:38:19 +02:00
|
|
|
return x;
|
2008-12-16 17:06:13 +01:00
|
|
|
}
|
2008-12-02 12:01:29 +01:00
|
|
|
|
2008-12-16 17:06:13 +01:00
|
|
|
var a = cube(3);
|
2010-07-09 17:07:59 +02:00
|
|
|
a += 1
|
|
|
|
|
a += 1
|
|
|
|
|
a += 1
|
|
|
|
|
a += 1
|