1 solutions

  • 0
    @ 2025-11-5 16:00:34

    C++ :

    #include<bits/stdc++.h>
    using namespace std;
    int main()
    {
    	for(int i=10;i<=99;i++)
    	{
    		if(i%10+i/10==10)
    		cout<<i<<endl;
    	}
       return 0;
    }
    
    

    Pascal :

    begin
     writeln('19');
     writeln('28');
     writeln('37');
     writeln('46');
     writeln('55');
     writeln('64');
     writeln('73');
     writeln('82');
     writeln('91');
    end.
    
    • 1

    输出个位上数字和十位上数字之和为10的两位数

    Information

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