欢迎来到求知题库网 求知题库官网
logo
全部科目 > 大学试题 > 计算机科学 > C++语言程序设计

问答题

简答题

There are two int variables: a and b, don’t use “if”, “? :”, “switch”or other judgement statements, find out the biggest one of the two numbers.

    【参考答案】

    ( ( a + b ) + abs( a - b ) ) / 2

    点击查看答案
    微信小程序免费搜题
    微信扫一扫,加关注免费搜题

    微信扫一扫,加关注免费搜题

    微信扫一扫,加关注免费搜题

    微信扫一扫,加关注免费搜题