第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定
已解決430363個(gè)問(wèn)題,去搜搜看,總會(huì)有你想問(wèn)的

這段代碼不斷得到 else 沒(méi)有 if 錯(cuò)誤

這段代碼不斷得到 else 沒(méi)有 if 錯(cuò)誤

紫衣仙女 2021-06-25 19:07:00
如果沒(méi)有其他錯(cuò)誤,此代碼會(huì)不斷獲取。我在這里看不到問(wèn)題。請(qǐng)幫忙。import java.util.Scanner;public class TempOut {    public static void main(String[] args) {        //variable        double t;        double v;        Scanner input = new Scanner(System.in);        //inputs        System.out.print("Give temperature(C): ");        t = input.nextDouble();        System.out.print("Give wind velocity(km/h): ");        v = input.nextDouble();        //formula        if (((t>=-50) & (t=<5)) | 3>=v)         {            double formula = 13.12 + (2*(0.6251*t)) - (11.37*v) + ((0.3965*t)*v);            System.out.print("The wind chill temperature is : "+formula);        }        else {            if (((t<-50) & (t>5)) | v=<3)             {            System.out.print("Formula not suitable");            }            else {                System.out.print("Invalid input");            }        }    }}它說(shuō)在每個(gè)“其他”上都有一個(gè)錯(cuò)誤。
查看完整描述

3 回答

  • 3 回答
  • 0 關(guān)注
  • 162 瀏覽
慕課專(zhuān)欄
更多

添加回答

舉報(bào)

0/150
提交
取消
微信客服

購(gòu)課補(bǔ)貼
聯(lián)系客服咨詢(xún)優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號(hào)

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號(hào)