mọi người giúp e hết chương 1 với
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.
Tham khảo:
program oken;
uses crt;
var i,n:integer;
begin
clrscr;
write('nhap 1 so bat ky: '); readln(n);
writeln('BANG CUU CHUONG ',n);
for i:=1 to 9 do
writeln(n,' * ',i,' = ',n*i);
readln;
end.
#include <bits/stdc++.h>
using namespace std;
int n,x,i,cnt,res;
int main() {
ios_base::sync_with_stdio(false);
cin.tie(NULL);
cout.tie(NULL);
cin>>n>>cnt;
for(i=0;i<n;i++)
{
cin>>x;
if(x%cnt==0) res++;
}
cout<<"so luong phan tu chia het cho "<<cnt<<" la: "<<res;
return 0;
}
#include <bits/stdc++.h>
using namespace std;
const int gh=1000;
int n,x,i,cnt,res,dem[gh];
int main() {
ios_base::sync_with_stdio(false);
cin.tie(NULL);
cout.tie(NULL);
cin>>n>>cnt;
for(i=0;i<n;i++)
{
cin>>x;
if(x%cnt==0) { res++; dem[res]=x;}
}
cout<<"so luong phan tu chia het cho "<<cnt<<" la: "<<res;
cout<<"\n"<<"cac phan tu do la: "<<"\n";
for(i=1;i<=res;i++)
cout<<dem[i]<<" ";
return 0;
}
// đây mới đúng mik đọc lỗi đề nha bạn!!
Câu 36:
a: Vẽ đồ thị:
b: Phương trình hoành độ giao điểm là:
\(x^2-2x+1=\left(2m-1\right)x+1\)
=>\(x^2-2x-\left(2m-1\right)x=0\)
=>\(x^2+x\left(-2-2m+1\right)=0\)
=>\(x^2+x\left(-2m-1\right)=0\)
\(\Delta=\left(-2m-1\right)^2-4\cdot1\cdot0=\left(-2m-1\right)^2=\left(2m+1\right)^2\)
Để (P) cắt (d) tại hai điểm phân biệt thì Δ>0
=>2m+1<>0
=>m<>-1/2



