tìm kiếm trên internet thông tin về một đội bóng một cầu thủ hoặc một mà em yêu thích theo em thông tin đó có phải là thông tin số hay không thông tin này được tổ chức bằng tổ chức nào
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.
VN
0
ND
Nguyễn Đăng Nhân
CTVHS
25 tháng 8 2023
Mình sử dụng ngôn ngữ c++:
#include <bits/stdc++.h>
using namespace std;
long long a[5];
int main()
{
for(int i=1;i<=4;i++){
cin>>a[i];
}
sort(a+1,a+5);
cout<<a[1];
return 0;
}
VD
0
TD
1
TD
1
ND
Nguyễn Đăng Nhân
CTVHS
9 tháng 4 2023
Ở đây, bạn có thể sử dụng vòng for lặp để tình tổng:
#include <iostream>
using namespace std;
int main()
{
int temporary=0;
for(int i=1;i<=10;i++){
temp+=i;
}
cout<<temporary;
return 0;
}
tuy nhiên, có cách khác dễ hơn là tính theo công thức;
#include <iostream>
using namespace std;
int main()
{
int temporary=(10/2)*(10+1);
cout<<temporary;
return 0;
}
(Code được viết theo ngôn ngữ c++)
TD
1