1/* 2 * Copyright (c) 2021 Huawei Device Co., Ltd. 3 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * you may not use this file except in compliance with the License. 5 * You may obtain a copy of the License at 6 * 7 * http://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software 10 * distributed under the License is distributed on an "AS IS" BASIS, 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * See the License for the specific language governing permissions and 13 * limitations under the License. 14 */ 15 16function zero() 17{ 18 var a = ' 0\n' 19 var b = ' 000\n' 20 var c = ' 00000\n' 21 var d = '0000000' 22 print(a+b+c+d) 23} 24 25function one(x) 26{ 27 print(x) 28} 29 30function two(x,y) 31{ 32 print(x+y) 33} 34 35function three(x,y,z) 36{ 37 print(x+y+z) 38} 39 40function four(x,y,z,t) 41{ 42 print(x+y+z+t) 43} 44 45function five(x,y,z,t,a) 46{ 47 let s = x + 10*y+ 100*z + 1000*t + 10000*a 48 print(s.toString(10)) 49} 50 51zero() 52one(123456789) 53two('hello,',' world') 54three('aaa','bbb','ccc') 55 56let x = 111 57let y = 222 58let z = 333 59let a = 666 60 61four(x.toString(10),y.toString(10),z.toString(10),a.toString(10)) 62five(1,2,3,4,5)