Viết chương trình nhập vào hai số a,b. Kiểm tra tổng của chúng có phải là số dương và chia hết cho 3 hay không?
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.
Trong Microsoft Word, để chia cột phần văn bản đã chọn ta sử dụng lệnh nào trong dải lệnh Layout
Margins
Orientation
Size
Columns
Trong Microsoft Word 2016, để chèn hình ảnh từ máy tính vào văn bản ta thực hiện lệnh nào?
Insert\Picture\This Device.
Insert\Picture\Online Pictures
Insert\Shapes
Insert\SmartArt
Kí tên :Công ty á ố si mà
Program HOC24;
var i,n,min: integer;
a: array[1..10000] of integer;
begin
write('Nhap so phan tu: '); readln(n);
for i:=1 to n do
begin
write('Nhap phan tu thu ',i,' :'); readln(a[i]);
end;
min:=a[1];
for i:=2 to n do
if a[i]<min then min:=a[i];
write('Phan tu nho nhat la: ',min);
readln
end.
uses crt;
const fo='de22.out';
var f1:text;
st:string;
begin
clrscr;
readln(st);
assign(f1,fo); rewrite(f1);
writeln(f1,st);
close(f1);
end.
#include <bits/stdc++.h>
using namespace std;
long long a[1000],i,n,t1,t2;
int main()
{
cin>>n;
for (i=1; i<=n; i++) cin>>a[i];
t1=0;
t2=0;
for (i=1; i<=n; i++)
{
if (a[i]%2==0) t1+=a[i];
else t2+=a[i];
}
cout<<t1<<endl;
cout<<t2;
return 0;
}
#include <bits/stdc++.h>
using namespace std;
long long a,b;
int main()
{
cin>>a>>b;
long long t=a+b;
if (t>0 && t%3==0) cout<<"YES";
else cout<<"NO";
return 0;
}