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.

19 tháng 12 2021

a=3; b=5

19 tháng 12 2021

uses crt;

var m,n:integer;

begin

clrscr;

readln(m,n);

if (m>n) cout<<"m lon hon"

else cout<<"n lon hon";

readln;

end.

19 tháng 12 2021

#include <bits/stdc++.h>
using namespace std;
long long n;
int main()
{
    freopen("fibonacci.inp","r",stdin);
    freopen("fibonacci.out","w",stdout);
    cin>>n;
    double c5=sqrt(5);
    cout<<fixed<<setprecision(0)<<((1/c5)*(pow((1+c5)/2,n)-pow((1-c5)/2,n)));
    return 0;
}

 

19 tháng 12 2021

#include <bits/stdc++.h>
using namespace std;
long long x;
//chuongtrinhcon
bool ktnt(long long n)
{
    for (int i=2; i*i<=n; i++)
      if (n%i==0) return(false);
    return(true);
}
//chuongtrinhcon
bool ktso(long long n)
{
    int a=n%10;
    int b=n/10; b=b%10;
    int c=n/100; c=c%10;
    int d=n/1000; d=d%10;
    if (a+b==c+d) return(true);
    else return(false);
}
//chuongtrinhchinh
int main()
{
    for (x=1000; x<=9999; x++)
      if ((ktnt(x)==true) and (ktso(x)==true)) cout<<x<<" ";
    return 0;
}

 

19 tháng 12 2021

input: a,b,c

Output: a+b+c

19 tháng 12 2021

Input: a,b,c

Output: a+b+c

19 tháng 12 2021

#include <bits/stdc++.h>

using namespace std;

long long s,i,n;

int main()

{

cin>>n;

s=0;

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

s=s+i;

cout<<s;

return 0;

}

18 tháng 12 2021

èo lớp 8 khó thế:v

18 tháng 12 2021

sao ko tham khảo