Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <cstdlib>
- using namespace std;
- int main()
- {
- int n;
- int p;
- int S;
- char A[n];
- for(int i=0;i<n;i++)
- {
- for(int j=1;j<n-i;j++)
- {
- if(A[j-1]>A[j])
- {
- swap(A[j-1],A[j]);
- }
- }
- }
- for (int i=0;i<n;i++)
- {
- for(int j=1;j<n-1;j++)
- {
- if((A[i]*A[j])%p==0)
- {
- S=A[i]*A[j];
- }
- }
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement