Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using namespace std;
- ifstream f("date.in");
- ofstream g("date.out");
- int main()
- {
- int a,b,cifa,cifb,v[100],i,j,nr;
- f>>a>>b;
- while(a)
- {
- cifa=a%10;
- a/=10;
- nr++;
- }
- while(b)
- {
- cifb=b%10;
- b/=10;
- nr++;
- }
- for(i=1;i<=nr;i++)
- {for(j=1;j<=nr;j++)
- {if( (i%2==0 && j%2==0) && i>j )
- g<<a<<" ";
- else
- g<<b;}}
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement