测评会员优惠活动进行中 · 开通 VIP,有效期内测评不限次 VIP 优惠中 · 测评不限次 立即查看

A52166. 阅读程序写结果。#include<iostream>using namespace std;int main() { int a,b,c; cin >>a>>b>>c; if(b!=0) { if(a/b>c) { cout <<a<<"/"<<b<<"-"<<c<<"=" << a/b-c <<endl; } else { cout <<c<<"-"<<a<<"-"<<b<<"=" <<c-a…

单选题 容易

题目描述

阅读程序写结果。

#include<iostream>

using namespace std;

int main() {

int a,b,c;

cin >>a>>b>>c;

if(b!=0) {

if(a/b>c) {

cout <<a<<"/"<<b<<"-"<<c<<"=" << a/b-c <<endl;

} else {

cout <<c<<"-"<<a<<"-"<<b<<"=" <<c-a/b<<endl;

}

}

return 0;

}

输入:10   5   1

输出:______

选项(单选)

上一题 下一题