Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- #include<math.h>
- int main()
- {
- long long t,i,j,k,n,c=0;
- while(scanf("%lld",&t)==1)
- {
- for(i=1;i<=t;i++)
- {
- scanf("%lld",&n);
- printf("Case #%lld: %lld",i,n);
- c=0;
- for(j=2;j<sqrt(n)+1;j++)
- {
- if(n%j==0)
- {
- printf(" = %lld * %lld",j,n/j);
- c++;
- }
- if(c==2)
- break;
- }
- printf("\n");
- }
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement