Header Ads

Learn Together, Stay Connected.

ভাগ করতে থাকো-C


#include<stdio.h> int main() { int n,k,i=0; scanf("%d%d",&n,&k); for(i=0; i<n; i++) { int x; scanf("%d",&x); while(k%x==0) k/=x; } printf("%d\n",k); return 0; }

No comments

Theme images by Dizzo. Powered by Blogger.