#include "stdio.h"
#include "conio.h"
#include "math.h"
//-----------------------------
void souoc( designed n)
{
for( int i=1;i<=n;i++)
if(n%i==0)
printf("%d",i);
}
//----------------------------
void main()
{
clrscr();
designed n;
printf("\n nhap n: ");
scanf("%d",n);
printf("\n cac uoc so la:");
souoc(n);
getch();
}
Đúng 1
Bình luận (1)