K
Khách

Hãy nhập câu hỏi của bạn vào đây, nếu là tài khoản VIP, bạn sẽ được ưu tiên trả lời.

#include <bits/stdc++.h>

using namespace std;

long long n;

int main()

{

cin>>n;

if (n%2==0) cout<<"So vua nhap la so chan";

else cout<<"So vua nhap le so le";

return 0;

}

#include <bits/stdc++.h>

using namespace std;

long long a,b;

double tb;

int main()

{

freopen("dulieu.inp","r",stdin);

freopen("ketqua.out","w",stdout);

cin>>a>>b;

cout<<a<<" "<<b;

cout<<fixed<<setprecision(2)<<(a*1.0+b*1.0)/(2*1.0);

return 0;

}

#include <bits/stdc++.h>

using namespace std;

int i;

int main()

{

freopen("ketqua.out","w",stdout);

for (i=1; i<=100; i++)

if (i%2==0) cout<<i<<" ";

return 0;

}

Câu 34: B

Câu 35: A

Câu 36: B

đề bài yêu cầu gì?

#include <bits/stdc++.h>
using namespace std;
int d,i,d1;
string st;
int main()
{
    getline(cin,st);
    d=st.length();
    while (st[0]==32)
    {
       st.erase(0,1);
    }
    while (st[d-1]==32)
    {
        st.erase(d-1,1);
    }
    d1=st.length();
    for (i=0; i<d1; i++)
        if ((st[i]==32) && st[i+1]==32)
        {
            st.erase(i,1);
            i--;
        }
    cout<<st;
    return 0;
}

 

8 tháng 1 2022

cứu mình với

 

8 tháng 1 2022

chỉ mình với ạ