📜  如何在 2d 数组中获取输入 - C 编程语言代码示例

📅  最后修改于: 2022-03-11 15:04:40.999000             🧑  作者: Mango

代码示例1
#include 

int main(){

    printf("Enter the number of columns");
    int i; 
    scanf("%d", &i);
    printf("Enter the number of rows");
    int y; 
    scanf("%d", &y);

    int r[i][y];
    int a;
    int b;

        for (a=0; a