1456+12
-1456 -(137 -1456) -63
-1456-(137-1456)-63
=-1456-137+1456-63
=0-137-63
=-137-63
=-200
-(-1456+23)-1456+153
các bạn ơi, giúp mik vs
bạn nào giúp mik thì mik thả tim
tinh nhanh:
123+321-123+321-123
1456-3214+1456
123456-654321+123
Nhập 1 số từ bàn phím. Nhiều nhất 6 chữ số. In ra cách đọc số đó. Ví dụ 12=> mười hai, 123=> một trăm hai mươi ba. 1456=> một ngàn bốn trăm năm mươi sáu
program doc_so;
uses crt;
var i,n:longint;
st1,st2:string;
begin
clrscr;
write('nhap n:');readln(n);
str(n,st1);
st2:=''
if length(st1)=6 then
begin
case st1[1] of
'1':st2:=st2+'mot'
'2':st2:=st2+'hai'
'3':st2:=st2+'ba'
'4':st2:=st2+'bon'
'5':st2:=st2+'nam'
'6':st2:=st2+'sau'
'7':st2:=st2+'bay'
'8':st2:=st2+'tam'
'9':st2:=st2+'chin'
end;
st2:=st2+' tram '
case st1[2] of
'1':st2:=st2+'mot'
'2':st2:=st2+'hai'
'3':st2:=st2+'ba'
'4':st2:=st2+'bon'
'5':st2:=st2+'nam'
'6':st2:=st2+'sau'
'7':st2:=st2+'bay'
'8':st2:=st2+'tam'
'9':st2:=st2+'chin'
end;
st2:=st2+' muoi '
case st1[3] of
'1':st2:=st2+'mot'
'2':st2:=st2+'hai'
'3':st2:=st2+'ba'
'4':st2:=st2+'bon'
'5':st2:=st2+'nam'
'6':st2:=st2+'sau'
'7':st2:=st2+'bay'
'8':st2:=st2+'tam'
'9':st2:=st2+'chin'
end;
st2:=st2+' nghin '
case st1[4] of
'1':st2:=st2+'mot'
'2':st2:=st2+'hai'
'3':st2:=st2+'ba'
'4':st2:=st2+'bon'
'5':st2:=st2+'nam'
'6':st2:=st2+'sau'
'7':st2:=st2+'bay'
'8':st2:=st2+'tam'
'9':st2:=st2+'chin'
end;
st2:=st2+' tram '
case st1[5] of
'1':st2:=st2+'mot'
'2':st2:=st2+'hai'
'3':st2:=st2+'ba'
'4':st2:=st2+'bon'
'5':st2:=st2+'nam'
'6':st2:=st2+'sau'
'7':st2:=st2+'bay'
'8':st2:=st2+'tam'
'9':st2:=st2+'chin'
end;
st2:=st2+' muoi '
case st1[6] of
'1':st2:=st2+'mot'
'2':st2:=st2+'hai'
'3':st2:=st2+'ba'
'4':st2:=st2+'bon'
'5':st2:=st2+'lam'
'6':st2:=st2+'sau'
'7':st2:=st2+'bay'
'8':st2:=st2+'tam'
'9':st2:=st2+'chin'
end;
writeln(st2);
end;
if length(st1)=5 then
begin
case st1[1] of
'2':st2:=st2+'hai'
'3':st2:=st2+'ba'
'4':st2:=st2+'bon'
'5':st2:=st2+'nam'
'6':st2:=st2+'sau'
'7':st2:=st2+'bay'
'8':st2:=st2+'tam'
'9':st2:=st2+'chin'
end;
st2:=st2+' muoi '
case st1[2] of
'1':st2:=st2+'mot'
'2':st2:=st2+'hai'
'3':st2:=st2+'ba'
'4':st2:=st2+'bon'
'5':st2:=st2+'nam'
'6':st2:=st2+'sau'
'7':st2:=st2+'bay'
'8':st2:=st2+'tam'
'9':st2:=st2+'chin'
end;
st2:=st2+' nghin '
case st1[3] of
'1':st2:=st2+'mot'
'2':st2:=st2+'hai'
'3':st2:=st2+'ba'
'4':st2:=st2+'bon'
'5':st2:=st2+'nam'
'6':st2:=st2+'sau'
'7':st2:=st2+'bay'
'8':st2:=st2+'tam'
'9':st2:=st2+'chin'
end;
st2:=st2+' tram '
case st1[4] of
'1':st2:=st2+'mot'
'2':st2:=st2+'hai'
'3':st2:=st2+'ba'
'4':st2:=st2+'bon'
'5':st2:=st2+'nam'
'6':st2:=st2+'sau'
'7':st2:=st2+'bay'
'8':st2:=st2+'tam'
'9':st2:=st2+'chin'
end;
st2:=st2+' muoi '
case st1[5] of
'1':st2:=st2+'mot'
'2':st2:=st2+'hai'
'3':st2:=st2+'ba'
'4':st2:=st2+'bon'
'5':st2:=st2+'lam'
'6':st2:=st2+'sau'
'7':st2:=st2+'bay'
'8':st2:=st2+'tam'
'9':st2:=st2+'chin'
end;
writeln(st2);
end;
if length(st1)=4 then
begin
case st1[1] of
'1':st2:=st2+'mot'
'2':st2:=st2+'hai'
'3':st2:=st2+'ba'
'4':st2:=st2+'bon'
'5':st2:=st2+'nam'
'6':st2:=st2+'sau'
'7':st2:=st2+'bay'
'8':st2:=st2+'tam'
'9':st2:=st2+'chin'
end;
st2:=st2+' nghin '
case st1[2] of
'1':st2:=st2+'mot'
'2':st2:=st2+'hai'
'3':st2:=st2+'ba'
'4':st2:=st2+'bon'
'5':st2:=st2+'nam'
'6':st2:=st2+'sau'
'7':st2:=st2+'bay'
'8':st2:=st2+'tam'
'9':st2:=st2+'chin'
end;
st2:=st2+' tram '
case st1[3] of
'1':st2:=st2+'mot'
'2':st2:=st2+'hai'
'3':st2:=st2+'ba'
'4':st2:=st2+'bon'
'5':st2:=st2+'nam'
'6':st2:=st2+'sau'
'7':st2:=st2+'bay'
'8':st2:=st2+'tam'
'9':st2:=st2+'chin'
end;
st2:=st2+' muoi '
case st1[4] of
'1':st2:=st2+'mot'
'2':st2:=st2+'hai'
'3':st2:=st2+'ba'
'4':st2:=st2+'bon'
'5':st2:=st2+'lam'
'6':st2:=st2+'sau'
'7':st2:=st2+'bay'
'8':st2:=st2+'tam'
'9':st2:=st2+'chin'
end;
writeln(st2);
end;
if length(st1)=3 then
begin
case st1[1] of
'1':st2:=st2+'mot'
'2':st2:=st2+'hai'
'3':st2:=st2+'ba'
'4':st2:=st2+'bon'
'5':st2:=st2+'nam'
'6':st2:=st2+'sau'
'7':st2:=st2+'bay'
'8':st2:=st2+'tam'
'9':st2:=st2+'chin'
end;
st2:=st2+' tram '
case st1[2] of
'1':st2:=st2+'mot'
'2':st2:=st2+'hai'
'3':st2:=st2+'ba'
'4':st2:=st2+'bon'
'5':st2:=st2+'nam'
'6':st2:=st2+'sau'
'7':st2:=st2+'bay'
'8':st2:=st2+'tam'
'9':st2:=st2+'chin'
end;
st2:=st2+' muoi '
case st1[3] of
'1':st2:=st2+'mot'
'2':st2:=st2+'hai'
'3':st2:=st2+'ba'
'4':st2:=st2+'bon'
'5':st2:=st2+'lam'
'6':st2:=st2+'sau'
'7':st2:=st2+'bay'
'8':st2:=st2+'tam'
'9':st2:=st2+'chin'
end;
writeln(st2);
end;
if length(st1)=2 then
begin
case st1[1] of
'2':st2:=st2+'hai'
'3':st2:=st2+'ba'
'4':st2:=st2+'bon'
'5':st2:=st2+'nam'
'6':st2:=st2+'sau'
'7':st2:=st2+'bay'
'8':st2:=st2+'tam'
'9':st2:=st2+'chin'
end;
st2:=st2+' muoi '
case st1[2] of
'1':st2:=st2+'mot'
'2':st2:=st2+'hai'
'3':st2:=st2+'ba'
'4':st2:=st2+'bon'
'5':st2:=st2+'lam'
'6':st2:=st2+'sau'
'7':st2:=st2+'bay'
'8':st2:=st2+'tam'
'9':st2:=st2+'chin'
end;
writeln(st2);
end;
if length(st1)=1 then
begin
case st1[1] of
'1':st2:=st2+'mot'
'2':st2:=st2+'hai'
'3':st2:=st2+'ba'
'4':st2:=st2+'bon'
'5':st2:=st2+'nam'
'6':st2:=st2+'sau'
'7':st2:=st2+'bay'
'8':st2:=st2+'tam'
'9':st2:=st2+'chin'
end;
writeln(st2);
end;
readln;
end.
3.tính nhanh
a)(1456+323)-1456
b)(-1999)-(-234-1999)
c)(116+124)+(215-116-124)
d)(435-167-89)-(435-89)
a ) ( 1456 + 323 ) - 1456
= 1456 + 323 - 1456
= ( 1456 - 1456 ) + 323 = 323
b ) ( - 1999 ) - ( - 234 - 1999)
= - 1999 + 234 + 1999
= ( - 1999 + 1999 ) + 234 = 0 + 234 = 234
a ) ( 1456 + 323 ) - 1456
= 1456 + 323 - 1456
= ( 1456 - 1456 ) + 323 = 323
b ) ( - 1999 ) - ( - 234 - 1999)
= - 1999 + 234 + 1999
= ( - 1999 + 1999 ) + 234 = 0 + 234 = 234
P/s tham khảo nha
1456+2
1456 : 67 = ?
X:11+1358=1456
X : 11 + 1358 = 1456
X : 11 = 1456 - 1358
X : 11 = 98
X = 98 x 11
X = 1078
Ai biết bài này giúp mình với ạ mình đang cần gấp