#include int main(void){ int n, i, j; printf("整数を入力してください:"); scanf("%d", &n); for ( i = 1; i <= n; i++ ){ printf("%2d:", i); for ( j = 1; j <= i; j++ ){ if ( i % j = 0 ){ printf("%3d", j); } else{ printf(" *"); } } } } return 0; }