[爆卦]sky哥是什麼?優點缺點精華區懶人包

為什麼這篇sky哥鄉民發文收入到精華區:因為在sky哥這個討論話題中,有許多相關的文章在討論,這篇最有參考價值!作者Qup (愛上小豆苗)看板NTUBA94study標題sky哥時間Tue Jan 14 00:5...

sky哥 在 泰妹日記(แป้ง) Instagram 的最讚貼文

2021-09-24 16:16:40

「別走的太快,等一等靈魂。」 我的靈魂大多喜愛那些飽和螢光絢爛的繽紛,充滿冒險的花火,接受多彩多姿的體驗與不受束縛的自由,當然,也接受墜落後的黑暗。而某些時候,當我的頻率渴望寧靜喜悅而沉穩,仰望天空時灰白的雲朵映著那寶寶藍,心看著看著,都不禁嚮往著那無邊界的自由。 記得在外澳乘上飛行傘的那種翱翔...


1.Given an exogram below, please answer 1-a and 1-b:

var x, y;
x=prompt("input digit", 0);
y=-1;
for(i=0;x!=(-1);i++)
{if(y<x)y=x;x=primpt("input digit", 0); }
document.writeln(y);

1-a Please choose the correct output after entering digit sequence 1 2 3 -1.=>(b)3

1-b Please choose a correct statement to fill in the blank which makes the
output is the maximum value of the digit sequence.=>(b)y<x
var x, y;
x=prompt("input digit", 0);
y=-1;
for(i=0;x!=(-1);i++)
{if(  )y=x;x=primpt("input digit", 0); }
document.writeln(y);

2.Please choose the correct output after entering digit5.=>(a)2

var x,y,z;
x=1
y=2;
z=3;
x=y;
z=y;
y=z;
document.writeln(y);

3.Please choose the correct output after entering digit5.=>(c)135

var i,x;
x=prompt("please enter a digit?");
for(i=1;i<=x;i++)
if((i*i/2)-parseInt(i*i/2)>0)document.writeln(i);

4.Please choose the correct output after entering digit7.=>(d)16

vari,x, s;

x=prompt("please enter a digit?");
s=0;
for(i=1;i<=x;i++)
if((i*i/2)-parseInt(i*i/2)>0)s=s+i;
document.writeln(s);

5.Please choose the correct output after entering digit5.=>(d)24

var i,x,y;
x=prompt("please enter a digit?");
y=1;
for(i=1;i<x;i++)
y=y*i;
document.writeln(y);

6.Please choose the correct output after entering digit-5.

var x=0;
x=prompt("input digit",0);
if(x<=0)document.writeln(-1*x);
else document.writeln(x);

7.Please choose the correct output after entering digit sequence1 2 3-1.=>(b)2

var x=0;
x=prompt("input digit or -1 when end",0);
for(s=0;x!=(-1),s++)
{
c=parseInt(c)+parseInt(x);
x=prompt("input digit or -1 when end",0);
}
if(s>0)document.writeln(c/s);

--
※ 發信站: 批踢踢實業坊(ptt.csie.ntu.edu.tw)
◆ From: 61.229.229.242

你可能也想看看

搜尋相關網站