C語言編程 for循環 3 .屏幕上輸出以下圖形: 1 12 123 1234 12345 123456

#include "stdafx.h"input int main(int argc, char* argv[]) {  int n,i,j;  printf("please input a number:/t");  scanf("%d",&n);  for(i=1;i!=n+1;i++)  {   for(j=1;j!=i+1;j++)   {    printf("%d",j);   }  
相關文章
相關標籤/搜索