1 solutions

  • 0
    @ 2025-11-5 18:55:50

    C++ :

    #include<iostream>
    using namespace std;
    int a[11];
    int main()
    {
    	for (int i=1; i<=10; i++) cin>>a[i];
    	for (int i=1,j=10; i<j; i++,j--)
    		{ int t=a[i]; a[i]=a[j]; a[j]=t; }
    	for (int i=1; i<10; i++) cout<<a[i]<<" ";
    	cout<<a[10]<<endl;
    	return 0;
    }
    
    • 1

    C语言程序设计教程(第三版)课后习题7.5

    Information

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