![](https://rs.olm.vn/images/avt/0.png?1311)
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.
![](https://rs.olm.vn/images/avt/0.png?1311)
Các câu hỏi dưới đây có thể giống với câu hỏi trên
![](https://rs.olm.vn/images/avt/0.png?1311)
![](https://rs.olm.vn/images/avt/0.png?1311)
![](https://rs.olm.vn/images/avt/0.png?1311)
3 tháng 12 2021
1:
#include <bits/stdc++.h>
using namespace std;
long long i,n,ln,x;
int main()
{
cin>>n;
ln=LLONG_MIN;
for (i=1; i<=n; i++)
{
cin>>x;
ln=max(ln,x);
}
cout<<ln;
return 0;
}
![](https://rs.olm.vn/images/avt/0.png?1311)
21 tháng 10 2021
#include <bits/stdc++.h>
using namespace std;
long long n,i,s;
int main()
{
cin>>n;
s=0;
for (i=1; i<=n; i++)
s=s+i;
cout<<s;
return 0;
}
![](https://rs.olm.vn/images/avt/0.png?1311)
![](https://rs.olm.vn/images/avt/0.png?1311)
TP
1 tháng 12 2021
Tham khảo
uses crt;
var a:array[1..100]of integer;
i,n,dem:integer;
begin
clrscr;
write('Nhap n='); readln(n);
for i:=1 to n do
begin
write('A[',i,']='); readln(a[i]);
end;
dem:=0;
for i:=1 to n do
if a[i] mod 3=0 then inc(dem);
writeln(dem);
readln;
end.
1 tháng 12 2021
Mình đang cần Input, Output và thuật toán cơ ạ, cái này dánh cho lập trình rùi ạ=(((
print("Nhập giá trị của n:")
n = int(input())
a = [ ]
for i in range(n):
print("Nhập giá trị của a[{}]:".format(i))
a.append(float(input()))
total_profit = sum(a)
average_profit = total_profit / n
daily_revenue = average_profit * 0.12
print("Doanh số bán hàng trung bình mỗi ngày là: {0:0.2f}".format(daily_revenue))