請幫我編碼。我想製作一個這樣的程序。對不起英文不好。 給定的輸入: N
where N is an integer.
回報: True if N = 2^x, where x is an integer.
我試圖做到這一點,但它不工作,因爲我想要的。 using namespace std;
int main()
{
float a,b,c;
cin>>a;
我想將一個浮點數作爲第二個參數(指數)傳遞給Math.pow()。我總是得到NaN,當通過的號碼不是整數,就像0,2,7,你的名字。有沒有在JavaScript的工作方式,使這項工作? (function() {
var notice = document.getElementById('notice');
var value = 0.0;
var interval