Hi, welcome to my website Programming.OM. My name is Om prakash kartik. This blog helps you to learn programming languages concepts and technique.
#include<stdio.h> #include<conio.h> void main() { int i,n; clrscr(); printf("Enter a no.:-"); scanf("%d",&n); printf("Prime factor=1"); i=2; while(n>1) { if(n%i==0) { printf("x%d",i); n/=i; } else i++; } getch(); }
0 Comments