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.

14 tháng 11 2019

program amduong;

var n:int64;

begin

readln(n);

if n<0 then write('am') else if n>0 then write('duong') else write('khong phai so am cung khong phai so duong');

readln;

end.

14 tháng 11 2019

program diem;

var st,s:ansistring;i,j:longint;n:real;

begin

readln(st);

for i:=1 to length(st) do if st[i] in ['0'..'9'] then

begin

for j:=i to length(st) do s:=s+st[j];

val(s,n);

if n>5 then write('dau') else write('rot');

break;

end;

readln;

end.

lên mạng đi bạn 

làm Pascal khó lắm

11 tháng 12 2021

b: 

#include <bits/stdc++.h>

using namespace std;

long long a,b,t;

int main()

{

cin>>a>>b;

t=a+b;

cout<<t;

return 0;

}

11 tháng 12 2021

b: 

#include <bits/stdc++.h>

using namespace std;

long long a,b,t;

int main()

{

cin>>a>>b;

t=a+b;

cout<<t;

return 0;

}

11 tháng 10 2021

2: 

#include <bits/stdc++.h>

using namespace std;

int main()

{

string st;

int a;

cin>>st;

cin>>a;

cout<<"Xin chao "<<st<<endl;

cout<<"Nam nay "<<st<<" "<<2021-a<<" tuoi";

return 0;

}

19 tháng 12 2021

 

#include <bits/stdc++.h>

using namespace std;

double a,b,c,tb;

int main()

{

cin>>a>>b>>c;

tb=(a+b+c)/3;

cout<<fixed<<setprecision(1)<<tb<<endl;

if (tb>=8) cout<<"Gioi";

else if ((6.5<=tb) and (tb<8)) cout<<"Kha";

else if ((5<=tb) and (tb<=6.5)) cout<<"Trung Binh";

else cout<<"Chua dat";

return 0;

}

24 tháng 12 2021

Em cảm ơn

uses crt;

var a,b:integer;

begin

clrscr;

readln(a,b);

writeln(a*b);

if (a>0) then writeln('a la so nguyen duong')

else writeln('a la so nguyen am');

readln;

end.

28 tháng 4 2021

nếu chạy ct mà nó không dừng lại thì bấm alt+F5 nhá

28 tháng 4 2021

thank

22 tháng 12 2020

uses crt;

var a:integer;

begin

clrscr;

write('Nhap a='); readln(a);

if a>0 then writeln(a,' la so duong')

else if a<0 then writeln(a,' la so am')

else writeln(a,' khong la so am cung khong la so duong');

readln;

end.

22 tháng 12 2020

làm thừa