Use scanf("%d", &rows) instead of scanf("%s", input) This allow you to get direcly the integer value from stdin without need to convert to int.
確定! 回上一頁