Write a program that asks the user to type an integer N and find out all the factors of N and display it on screen.
寫一個程式 輸入一個整數N,找出N的所有因數
Example input 1
10
Example output 1
1 2 5 10
Example input 2
24
Example output 2
1 2 3 4 6 8 12 24
Hidden content!#include <stdio.h>int main(){ int a, l, c,k; * ** * * * * *** * * * ** * ** * * ** ** * ** ** * * ** * ** * * * &a); for (l=1; l <= a; ++l) {