1 solutions

  • 0
    @ 2024-12-4 19:37:03

    C++ :

    #include<iostream>
    using namespace std;
    
    int main(){
    	int a,b,c,d,e;
    	for (a=10; a<15; a++){
    		c=8*a;
    		d=9*a+1;
    		e=9*a;
    		b=100*c+d;
    		if (b>=1000 && b<10000 && c<100 && e>=100 && e<1000)
    			cout<<a<<endl<<b<<endl<<c<<endl<<d<<endl<<e<<endl;
    	}
    	return 0;
    }
    
    • 1

    Information

    ID
    2269
    Time
    1000ms
    Memory
    128MiB
    Difficulty
    (None)
    Tags
    # Submissions
    0
    Accepted
    0
    Uploaded By