c语言使用scanf读取多个输入,并保存到数组中

标题:c语言使用scanf读取多个输入,并保存到数组中

int main(){
    
    
		int arr[71];
		int i = 0;
		scanf("%d",&arr[i]); 
		
		while(arr[i] > 0 && arr[i] < 71){
    
    
			i++;
			scanf("%d",&arr[i]); 	
		}     
        return 0;
    
}

猜你喜欢

转载自blog.csdn.net/weixin_45986454/article/details/123185825
今日推荐