c语言中怎样输入多组数据

如题所述

以这道题为例。

int main(){
    for(int a,b;scanf("%d%d",&a,&b){
    
    }
}

for循环里写你的算法就行了

温馨提示:答案为网友推荐,仅供参考
相似回答