多種數據輸入

#include<stdio.h>
int main()
{
int a,b;
while(scanf("%d%d",&a,&b)!=EOF)
{

}

return 0;

}



#include<stdio.h>
{
int t;
scanf("%d",&t);
while(t>0)
{
int a,b;
scanf("%d%d",&a,&b);
t--;

}

return 0;

}


#include<stdio.h>
int mian()
{
int a,b;
while(scanf("%d%d",&a,&b))
{
if(a==0&&b==0) break;

}

return 0;

}
發佈了22 篇原創文章 · 獲贊 21 · 訪問量 2萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章