寫出列印結果 /*num的因數*/
#include <stdio.h>
int main() /*寫出列印結果*/
{
int min = 1, num = 18;
printf("%d\n", num);
while(min <= num)
{
if(num % min == 0)
{
printf("%d", min);
if( num != min) printf(",");
}
min++;
}
}
若min小於num執行while迴圈中的敘述式,