From e864749a28f5d91accdbe34882e1067de47a4d7b Mon Sep 17 00:00:00 2001 From: nnmv892 <72543416+nnmv892@users.noreply.github.com> Date: Thu, 12 Nov 2020 04:59:16 -0500 Subject: [PATCH 01/46] Create Variable.c --- "B\303\240i t\341\272\255p 1/Variable.c" | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 "B\303\240i t\341\272\255p 1/Variable.c" diff --git "a/B\303\240i t\341\272\255p 1/Variable.c" "b/B\303\240i t\341\272\255p 1/Variable.c" new file mode 100644 index 0000000..53d27cb --- /dev/null +++ "b/B\303\240i t\341\272\255p 1/Variable.c" @@ -0,0 +1,23 @@ +int main() { + // khai bao bien a kieu so nguyen + int a; + // khoi tao gia tri bien a + a = 4; + // khai bao va khoi tao bien + int b = 2; + // khai bao nhieu bien va khoi tao + int c= 1, d = 3; + // khai bao nhieu bien + int e, f, g; + printf("bien a = %d va bien b = %d",a,b); + e = a + b; + printf("\n"); + printf("Tong a + b = %d",e); + printf("\n"); + printf("Tong %d + %d = %d",a,b,e); + printf("\n"); + g = ((a + b) - c) * d; + printf("( %d + %d ) - %d)* %d = %d ",a,b,c,d,g); + getchar(); + return 0; +} From de6122a62ece88ada5e1ddb7f1e2eb089481eeae Mon Sep 17 00:00:00 2001 From: nnmv892 <72543416+nnmv892@users.noreply.github.com> Date: Thu, 26 Nov 2020 01:54:45 -0500 Subject: [PATCH 02/46] Create pheptinh.c --- "B\303\240i t\341\272\255p 1/pheptinh.c" | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 "B\303\240i t\341\272\255p 1/pheptinh.c" diff --git "a/B\303\240i t\341\272\255p 1/pheptinh.c" "b/B\303\240i t\341\272\255p 1/pheptinh.c" new file mode 100644 index 0000000..7d40759 --- /dev/null +++ "b/B\303\240i t\341\272\255p 1/pheptinh.c" @@ -0,0 +1,17 @@ +#include + +int main(void) +{ +int a,b; + a = 3; + b = 5; + int tong, hieu, tich; + double thuong; + tong = a + b; + hieu = a - b; + tich = a * b; + thuong = (double)a / b; + printf("a + b = %d, a - b = %d, a * b = %d, a / b = %0.1f", tong, hieu, tich, thuong); + getchar(); + return 0; +} From 5b6b9476bb8520767cfb4dc58dc6038ed62b3487 Mon Sep 17 00:00:00 2001 From: nnmv892 <72543416+nnmv892@users.noreply.github.com> Date: Thu, 26 Nov 2020 03:00:09 -0500 Subject: [PATCH 03/46] Update pheptinh.c --- "B\303\240i t\341\272\255p 1/pheptinh.c" | 33 ++++++++++++++---------- 1 file changed, 20 insertions(+), 13 deletions(-) diff --git "a/B\303\240i t\341\272\255p 1/pheptinh.c" "b/B\303\240i t\341\272\255p 1/pheptinh.c" index 7d40759..c7455c0 100644 --- "a/B\303\240i t\341\272\255p 1/pheptinh.c" +++ "b/B\303\240i t\341\272\255p 1/pheptinh.c" @@ -1,17 +1,24 @@ #include -int main(void) -{ -int a,b; - a = 3; - b = 5; - int tong, hieu, tich; - double thuong; - tong = a + b; - hieu = a - b; - tich = a * b; - thuong = (double)a / b; - printf("a + b = %d, a - b = %d, a * b = %d, a / b = %0.1f", tong, hieu, tich, thuong); - getchar(); +int main (void){ + + int a ;int b; + a=3;b=5; + + printf("a\t"); printf("b\t"); printf("a+b\t"); printf("a-b\t"); printf("a*b\t"); printf("a/b\n"); + + + a+b; a-b; a*b; a/b; + + printf("%d\t",a); printf("%d\t",b); + + printf("%d\t",a+b); printf("%d\t",a-b); + + printf("%d\t",a*b); + + double c = 3; + double d = 5; + printf("%g", c/d); + return 0; } From 73749835438154c25228a0888f0482546e06ba4e Mon Sep 17 00:00:00 2001 From: nnmv892 <72543416+nnmv892@users.noreply.github.com> Date: Thu, 26 Nov 2020 03:31:30 -0500 Subject: [PATCH 04/46] Update pheptinh.c --- "B\303\240i t\341\272\255p 1/pheptinh.c" | 20 ++++++++------------ 1 file changed, 8 insertions(+), 12 deletions(-) diff --git "a/B\303\240i t\341\272\255p 1/pheptinh.c" "b/B\303\240i t\341\272\255p 1/pheptinh.c" index c7455c0..80ec9e2 100644 --- "a/B\303\240i t\341\272\255p 1/pheptinh.c" +++ "b/B\303\240i t\341\272\255p 1/pheptinh.c" @@ -1,24 +1,20 @@ -#include +include int main (void){ int a ;int b; a=3;b=5; - printf("a\t"); printf("b\t"); printf("a+b\t"); printf("a-b\t"); printf("a*b\t"); printf("a/b\n"); - - a+b; a-b; a*b; a/b; - printf("%d\t",a); printf("%d\t",b); - - printf("%d\t",a+b); printf("%d\t",a-b); - - printf("%d\t",a*b); - double c = 3; double d = 5; - printf("%g", c/d); - + + printf("a\t b\t a+b\t a-b\t a*b\t a/b\n"); + + printf("%d\t %d\t %d\t %d\t %d\t %g",a,b,a+b,a-b,a*b,c/d); + + return 0; } + From 23b11b837ec35792423d0302d60656d959c27c43 Mon Sep 17 00:00:00 2001 From: nnmv892 <72543416+nnmv892@users.noreply.github.com> Date: Thu, 26 Nov 2020 03:35:22 -0500 Subject: [PATCH 05/46] Update pheptinh.c --- "B\303\240i t\341\272\255p 1/pheptinh.c" | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git "a/B\303\240i t\341\272\255p 1/pheptinh.c" "b/B\303\240i t\341\272\255p 1/pheptinh.c" index 80ec9e2..df63eda 100644 --- "a/B\303\240i t\341\272\255p 1/pheptinh.c" +++ "b/B\303\240i t\341\272\255p 1/pheptinh.c" @@ -1,4 +1,4 @@ -include +#include int main (void){ @@ -17,4 +17,3 @@ int main (void){ return 0; } - From 4deb702b2062de191ed2254b0b2910477b39ee2c Mon Sep 17 00:00:00 2001 From: nnmv892 <72543416+nnmv892@users.noreply.github.com> Date: Thu, 26 Nov 2020 05:00:44 -0500 Subject: [PATCH 06/46] Create chuvi.c --- "B\303\240i t\341\272\255p 1/chuvi.c" | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 "B\303\240i t\341\272\255p 1/chuvi.c" diff --git "a/B\303\240i t\341\272\255p 1/chuvi.c" "b/B\303\240i t\341\272\255p 1/chuvi.c" new file mode 100644 index 0000000..5372238 --- /dev/null +++ "b/B\303\240i t\341\272\255p 1/chuvi.c" @@ -0,0 +1,21 @@ +#include + +int main(){ + //khai bao bien + double R; + R = 2.5; + //khai bao hang + const double PI = 3.14; + //khai bao nhieu bien + double CV, DT; + printf("R=%.1f", R); + printf("\n"); + printf("PI:%.2f",PI); + CV = (double) 2*R*PI; + DT = (double) R*R*PI; + printf("\n\n"); + printf("2*R*PI\tR*R*PI\n%.1f\t%.1f",CV,DT); + + getchar(); + return 0; +} From de18415c73097a49d8c3c8e7d0e308a1a4a950e0 Mon Sep 17 00:00:00 2001 From: nnmv892 <72543416+nnmv892@users.noreply.github.com> Date: Thu, 3 Dec 2020 02:08:21 -0500 Subject: [PATCH 07/46] Create tong.c --- "B\303\240i t\341\272\255p 2/tong.c" | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 "B\303\240i t\341\272\255p 2/tong.c" diff --git "a/B\303\240i t\341\272\255p 2/tong.c" "b/B\303\240i t\341\272\255p 2/tong.c" new file mode 100644 index 0000000..8f9d2f9 --- /dev/null +++ "b/B\303\240i t\341\272\255p 2/tong.c" @@ -0,0 +1,14 @@ +#include + +//nhap so a, b tu ban phim +//hien thi tong a va b +int main(void){ + int a, b; + printf("nhap a = "); + scanf("%d",&a); + printf("nhap b = "); + scanf("%d",&b); + printf("a + b = %d", a + b); + return 0 ; + +} From d70b8e9384d48f4c0e922627ce9856f76c9a5d30 Mon Sep 17 00:00:00 2001 From: nnmv892 <72543416+nnmv892@users.noreply.github.com> Date: Thu, 3 Dec 2020 03:11:05 -0500 Subject: [PATCH 08/46] Create chieudai.c --- "B\303\240i t\341\272\255p 2/chieudai.c" | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 "B\303\240i t\341\272\255p 2/chieudai.c" diff --git "a/B\303\240i t\341\272\255p 2/chieudai.c" "b/B\303\240i t\341\272\255p 2/chieudai.c" new file mode 100644 index 0000000..05db0ca --- /dev/null +++ "b/B\303\240i t\341\272\255p 2/chieudai.c" @@ -0,0 +1,14 @@ +#include +int main(){ + +//nhap chieu dai l theo don vi gia tri ban phim + int l,i,f; + printf("nhap chieu dai Met (M): %d", l); + scanf("%d", &l); + i=l*100; + f=l*1000; + printf("\nXentimet (Cm) la: %d", i); + printf("\nMilimet (Mm) la: %d", f); + return 0; + +} From e5a2149c479a54de48afd53260a2e6105ee7a83a Mon Sep 17 00:00:00 2001 From: nnmv892 <72543416+nnmv892@users.noreply.github.com> Date: Thu, 3 Dec 2020 04:53:04 -0500 Subject: [PATCH 09/46] Create ketquahoctap.c --- "B\303\240i t\341\272\255p 2/ketquahoctap.c" | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 "B\303\240i t\341\272\255p 2/ketquahoctap.c" diff --git "a/B\303\240i t\341\272\255p 2/ketquahoctap.c" "b/B\303\240i t\341\272\255p 2/ketquahoctap.c" new file mode 100644 index 0000000..c9d1afe --- /dev/null +++ "b/B\303\240i t\341\272\255p 2/ketquahoctap.c" @@ -0,0 +1,16 @@ +#include + +int main(void) { + +int V,T,Van,Toan; +double DTB; +Van=V; +Toan=T; +DTB=(double)(V+T)/2; +printf ("Nhap V ="); +scanf ("%d",&V); +printf (" Nhap T ="); +scanf ("%d",&T); +printf("Van\tToan\tDTB\n%d\t%d\t%0.1f",Van,Toan,DTB); +return 0 ; +} From 31b72a1ece1043e171e99e3660a9d63f380a8118 Mon Sep 17 00:00:00 2001 From: nnmv892 <72543416+nnmv892@users.noreply.github.com> Date: Thu, 3 Dec 2020 04:58:53 -0500 Subject: [PATCH 10/46] Update ketquahoctap.c --- "B\303\240i t\341\272\255p 2/ketquahoctap.c" | 2 -- 1 file changed, 2 deletions(-) diff --git "a/B\303\240i t\341\272\255p 2/ketquahoctap.c" "b/B\303\240i t\341\272\255p 2/ketquahoctap.c" index c9d1afe..d5692c9 100644 --- "a/B\303\240i t\341\272\255p 2/ketquahoctap.c" +++ "b/B\303\240i t\341\272\255p 2/ketquahoctap.c" @@ -4,8 +4,6 @@ int main(void) { int V,T,Van,Toan; double DTB; -Van=V; -Toan=T; DTB=(double)(V+T)/2; printf ("Nhap V ="); scanf ("%d",&V); From ad027e4612f68b0e8bbb818fe802b426c19da7e3 Mon Sep 17 00:00:00 2001 From: nnmv892 <72543416+nnmv892@users.noreply.github.com> Date: Thu, 10 Dec 2020 03:06:47 -0500 Subject: [PATCH 11/46] Create amduong.c --- "B\303\240i t\341\272\255p 3/amduong.c" | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 "B\303\240i t\341\272\255p 3/amduong.c" diff --git "a/B\303\240i t\341\272\255p 3/amduong.c" "b/B\303\240i t\341\272\255p 3/amduong.c" new file mode 100644 index 0000000..4912ecc --- /dev/null +++ "b/B\303\240i t\341\272\255p 3/amduong.c" @@ -0,0 +1,17 @@ +#include + +int main(void){ + int a; + printf("nhap a tu ban phim :"); + scanf("%d", &a); + if(a > 0){ + printf("%d duong", &a); + }else if(a == 0) { + printf("%d = 0", a); + }else{ + printf("%d am", a); + } + + getchar(); + return 0; +} From fe4c092acc582e3fbdc5986892204e2a9a29b77a Mon Sep 17 00:00:00 2001 From: nnmv892 <72543416+nnmv892@users.noreply.github.com> Date: Thu, 10 Dec 2020 03:44:42 -0500 Subject: [PATCH 12/46] Create sosanh.c --- "B\303\240i t\341\272\255p 3/sosanh.c" | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 "B\303\240i t\341\272\255p 3/sosanh.c" diff --git "a/B\303\240i t\341\272\255p 3/sosanh.c" "b/B\303\240i t\341\272\255p 3/sosanh.c" new file mode 100644 index 0000000..4510076 --- /dev/null +++ "b/B\303\240i t\341\272\255p 3/sosanh.c" @@ -0,0 +1,18 @@ +#include + +int main(){ + //khai bao bien a, b + int a, b; + printf("nhap a tu ban phim :",a); + scanf("%d", &a); + printf("nhap b tu ban phim :",b); + scanf("%d", &b); + if(a > b){ + printf("a>b",a,b); + }else if( a== b){ + printf("a==b",a,b); + }else if(a < b){ + printf("a Date: Thu, 10 Dec 2020 04:56:34 -0500 Subject: [PATCH 13/46] Create hondon.c --- "B\303\240i t\341\272\255p 3/hondon.c" | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 "B\303\240i t\341\272\255p 3/hondon.c" diff --git "a/B\303\240i t\341\272\255p 3/hondon.c" "b/B\303\240i t\341\272\255p 3/hondon.c" new file mode 100644 index 0000000..942deee --- /dev/null +++ "b/B\303\240i t\341\272\255p 3/hondon.c" @@ -0,0 +1,16 @@ +#include + +int main(){ + int dongia, soluong, thanhtien; + printf("nhap don gia :",dongia); + scanf("%d",&dongia); + printf("nhap soluong :",soluong); + scanf("%d",&soluong); + thanhtien=dongia*soluong; + if(soluong>=5){thanhtien=(dongia*soluong)*0.75; + printf("%d", thanhtien); + }else{printf("%d",thanhtien); + } + getchar(); + return 0; + } From 5cf94cad86d5662667397fa936db423111c44d39 Mon Sep 17 00:00:00 2001 From: nnmv892 <72543416+nnmv892@users.noreply.github.com> Date: Thu, 17 Dec 2020 02:14:20 -0500 Subject: [PATCH 14/46] Update hondon.c --- "B\303\240i t\341\272\255p 3/hondon.c" | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git "a/B\303\240i t\341\272\255p 3/hondon.c" "b/B\303\240i t\341\272\255p 3/hondon.c" index 942deee..0b6919f 100644 --- "a/B\303\240i t\341\272\255p 3/hondon.c" +++ "b/B\303\240i t\341\272\255p 3/hondon.c" @@ -7,7 +7,7 @@ int main(){ printf("nhap soluong :",soluong); scanf("%d",&soluong); thanhtien=dongia*soluong; - if(soluong>=5){thanhtien=(dongia*soluong)*0.75; + if(thanhtien>=500&&dongia>=5){thanhtien=(dongia*soluong)*0.5; printf("%d", thanhtien); }else{printf("%d",thanhtien); } From f2ed138b131ec2ad8f46c18a60ee9acc9d85722d Mon Sep 17 00:00:00 2001 From: nnmv892 <72543416+nnmv892@users.noreply.github.com> Date: Thu, 17 Dec 2020 04:15:27 -0500 Subject: [PATCH 15/46] Create phepinh.c --- "B\303\240i t\341\272\255p 3/phepinh.c" | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 "B\303\240i t\341\272\255p 3/phepinh.c" diff --git "a/B\303\240i t\341\272\255p 3/phepinh.c" "b/B\303\240i t\341\272\255p 3/phepinh.c" new file mode 100644 index 0000000..2016584 --- /dev/null +++ "b/B\303\240i t\341\272\255p 3/phepinh.c" @@ -0,0 +1,20 @@ +#include + +int main(void){ +int a = 5, b = 2; +char pt; +printf("Vui long nhap phep tinh: "); +scanf("%c", &pt); +switch (pt) { +case ('+'): +printf ("a+b=%d",a+b); +break ; +case ('-'): +printf ("a-b=%d",a-b); +break ; + +default : + printf ("vui long nhap phep tinh"); +} +return 0 ; +} From 3055f00560866ac8472ae39a66fb2a9ec2c01aed Mon Sep 17 00:00:00 2001 From: nnmv892 <72543416+nnmv892@users.noreply.github.com> Date: Thu, 17 Dec 2020 05:02:52 -0500 Subject: [PATCH 16/46] Create thang.c --- "B\303\240i t\341\272\255p 3/thang.c" | 28 +++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 "B\303\240i t\341\272\255p 3/thang.c" diff --git "a/B\303\240i t\341\272\255p 3/thang.c" "b/B\303\240i t\341\272\255p 3/thang.c" new file mode 100644 index 0000000..d48594f --- /dev/null +++ "b/B\303\240i t\341\272\255p 3/thang.c" @@ -0,0 +1,28 @@ +#include + +int main(void){ + int thang; + printf("Vui long nhap thang:"); + scanf("%d",&thang); + switch (thang){ + case 1: + case 3: + case 5: + case 7: + case 8: + case 10: + case 12: + printf(" 30 ngay ");break; + case 4: + case 6: + case 9: + case 11: + printf(" 31 ngay ");break; + case 2: + printf(" 28 ngay ");break; + default: + + printf("Vui long nhap phep tinh"); +} + return 0; + } From 860aaf3bb655997bffe2581ae3777f931e2d7a9d Mon Sep 17 00:00:00 2001 From: nnmv892 <72543416+nnmv892@users.noreply.github.com> Date: Thu, 24 Dec 2020 02:07:42 -0500 Subject: [PATCH 17/46] Create xinchao.c --- "B\303\240i t\341\272\255p 3/xinchao.c" | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 "B\303\240i t\341\272\255p 3/xinchao.c" diff --git "a/B\303\240i t\341\272\255p 3/xinchao.c" "b/B\303\240i t\341\272\255p 3/xinchao.c" new file mode 100644 index 0000000..e2d830d --- /dev/null +++ "b/B\303\240i t\341\272\255p 3/xinchao.c" @@ -0,0 +1,8 @@ +#include +int main(void){ + int count; + for (count =1; count <=10; count++ ){ + printf("\n xin chao "); + } + +} From 23537e64218cce9b9be33f3cbbd48fb4591ad94e Mon Sep 17 00:00:00 2001 From: nnmv892 <72543416+nnmv892@users.noreply.github.com> Date: Thu, 24 Dec 2020 02:14:17 -0500 Subject: [PATCH 18/46] Create motdenmuoi.c --- "B\303\240i t\341\272\255p 3/motdenmuoi.c" | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 "B\303\240i t\341\272\255p 3/motdenmuoi.c" diff --git "a/B\303\240i t\341\272\255p 3/motdenmuoi.c" "b/B\303\240i t\341\272\255p 3/motdenmuoi.c" new file mode 100644 index 0000000..8d08731 --- /dev/null +++ "b/B\303\240i t\341\272\255p 3/motdenmuoi.c" @@ -0,0 +1,8 @@ +#include +int main(void){ + int count; + for (count =1; count <=10; count++ ){ + printf("1\t2\t3\t4\t5\t6\t7\t8\t9\t10\n"); + } + +} From 9c8236f5f70fd92b1cb76cee942441c2d4a6bbb5 Mon Sep 17 00:00:00 2001 From: nnmv892 <72543416+nnmv892@users.noreply.github.com> Date: Thu, 24 Dec 2020 02:33:20 -0500 Subject: [PATCH 19/46] Update motdenmuoi.c --- "B\303\240i t\341\272\255p 3/motdenmuoi.c" | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git "a/B\303\240i t\341\272\255p 3/motdenmuoi.c" "b/B\303\240i t\341\272\255p 3/motdenmuoi.c" index 8d08731..ef83161 100644 --- "a/B\303\240i t\341\272\255p 3/motdenmuoi.c" +++ "b/B\303\240i t\341\272\255p 3/motdenmuoi.c" @@ -1,8 +1,10 @@ #include int main(void){ int count; - for (count =1; count <=10; count++ ){ + for (count =1; count <=1; count++ ){ printf("1\t2\t3\t4\t5\t6\t7\t8\t9\t10\n"); + } for (count =1; count <=10; count++ ){ + printf("12345678910 \n"); } } From 4d13987b41b5d2a170c569f62b45fb2864e4eb42 Mon Sep 17 00:00:00 2001 From: nnmv892 <72543416+nnmv892@users.noreply.github.com> Date: Thu, 24 Dec 2020 03:03:54 -0500 Subject: [PATCH 20/46] Create Ghichu.txt --- "B\303\240i t\341\272\255p 3/Ghichu.txt" | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 "B\303\240i t\341\272\255p 3/Ghichu.txt" diff --git "a/B\303\240i t\341\272\255p 3/Ghichu.txt" "b/B\303\240i t\341\272\255p 3/Ghichu.txt" new file mode 100644 index 0000000..6eefdc8 --- /dev/null +++ "b/B\303\240i t\341\272\255p 3/Ghichu.txt" @@ -0,0 +1,3 @@ +dem = dem + 1 +<=> dem + =1 +<=> dem ++ From b8d3c557c929affe3512dfabfbc862d712ebf29e Mon Sep 17 00:00:00 2001 From: nnmv892 <72543416+nnmv892@users.noreply.github.com> Date: Thu, 24 Dec 2020 03:09:38 -0500 Subject: [PATCH 21/46] Update motdenmuoi.c --- "B\303\240i t\341\272\255p 3/motdenmuoi.c" | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git "a/B\303\240i t\341\272\255p 3/motdenmuoi.c" "b/B\303\240i t\341\272\255p 3/motdenmuoi.c" index ef83161..2cbaf4b 100644 --- "a/B\303\240i t\341\272\255p 3/motdenmuoi.c" +++ "b/B\303\240i t\341\272\255p 3/motdenmuoi.c" @@ -3,8 +3,8 @@ int main(void){ int count; for (count =1; count <=1; count++ ){ printf("1\t2\t3\t4\t5\t6\t7\t8\t9\t10\n"); - } for (count =1; count <=10; count++ ){ - printf("12345678910 \n"); + } for (count =1; count <=1; count++ ){ + printf("2\n3\n4\n5\n6\n7\n8\n9\n10"); } } From 2742edb7e43352f565eea1040c49d85493aaf998 Mon Sep 17 00:00:00 2001 From: nnmv892 <72543416+nnmv892@users.noreply.github.com> Date: Thu, 24 Dec 2020 03:56:17 -0500 Subject: [PATCH 22/46] Create tong10.c --- "B\303\240i t\341\272\255p 3/tong10.c" | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 "B\303\240i t\341\272\255p 3/tong10.c" diff --git "a/B\303\240i t\341\272\255p 3/tong10.c" "b/B\303\240i t\341\272\255p 3/tong10.c" new file mode 100644 index 0000000..c20fefc --- /dev/null +++ "b/B\303\240i t\341\272\255p 3/tong10.c" @@ -0,0 +1,7 @@ +#include +int main(void){ + int tong =0; + for(int dem = 1; dem <=10; dem++){tong = tong + dem; + } +printf("tong la: %d",tong); +} From 6ecd23d9614ac30d87e282676f1a188afb25935e Mon Sep 17 00:00:00 2001 From: nnmv892 <72543416+nnmv892@users.noreply.github.com> Date: Tue, 29 Dec 2020 19:21:33 -0500 Subject: [PATCH 23/46] Create tamgiacso.c --- "B\303\240i t\341\272\255p 3/tamgiacso.c" | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 "B\303\240i t\341\272\255p 3/tamgiacso.c" diff --git "a/B\303\240i t\341\272\255p 3/tamgiacso.c" "b/B\303\240i t\341\272\255p 3/tamgiacso.c" new file mode 100644 index 0000000..d251d66 --- /dev/null +++ "b/B\303\240i t\341\272\255p 3/tamgiacso.c" @@ -0,0 +1,18 @@ +#include + +int main (void) +{ + int a,b; + int n; + printf("Nhap vao n= "); + scanf("%d",&n); + for (a=1; a<= n ; a++ ) + { + printf("\n"); + for(b=1;b<=a;b++) + { + printf("%d ",b); + } + } + return 0 ; +} From 5a7b56734a2490223dd6f1462a85cf1fbdb3075d Mon Sep 17 00:00:00 2001 From: nnmv892 <72543416+nnmv892@users.noreply.github.com> Date: Thu, 7 Jan 2021 03:24:12 -0500 Subject: [PATCH 24/46] Add files via upload --- "B\303\240i t\341\272\255p 3/Review_01.c.PNG" | Bin 0 -> 21905 bytes 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "B\303\240i t\341\272\255p 3/Review_01.c.PNG" diff --git "a/B\303\240i t\341\272\255p 3/Review_01.c.PNG" "b/B\303\240i t\341\272\255p 3/Review_01.c.PNG" new file mode 100644 index 0000000000000000000000000000000000000000..597798161397b63472248b4c4d3c28577782718b GIT binary patch literal 21905 zcmY&<2Ut@}^Y@{5(Tji=rHO*lr7F@9QK?d;gpTwgRayujcohLf=_Mda?+8c@MWlq@ z0)(oB4gmrL2!!v%`@a9@dwCu>oO5PoXLe_2cV>U*jh>DM6Fmn#002ynA3e|q016oR z{|PNM_;<(QwmWzs^U>E(1YTJ#H3HWN!X#Gy1xoX>`@`F9(Qj!BNGD*Zd;ihIS zrjf(`_g=t6z*h5sX>exE;FN}3LVVoZ{R4Wrl}+R{J7;iXQzYjh zUHe!ll}XnW0a_U8Dz1AGAQ4z+@c`uDwN?I(E7{J7iIwyNw^rG)T{2rlT*FrS8dq7W8A2|2(2JO{*^N6efL}H)@OS9Hb)E;DGbk{ ztGLMdHJ_CyI++UQ{~)xkP$nX@P2$8U7@9n@HZj?qz??y< z#^KTY4gE{BKJC`cD&n<+(AAhXoDcrUXK(|R&JjNvna+0ts$THTK}=?1X8<%i!(-uGEUG( z5L=?Vc-c-fCc`N~9@ujedKmOd5!J+a}xo<(^o64R>i9j6yt%fipm%t3Dzxp$k5X+edF$CMt7y z3H4=Ni7Kdo_NIJz{c*eAYI`=rE1QeLQEfc54QF1wL(CDx7kcWd*>5=wNhUZwB>89< zbO-qg@o2|K#HVs-r9Eq%``R~LY^q;|EIKnKqwjKe^F-C^iJvLtrwEqZ<_dKO4@qtW zC}vMB`#L3Q_BgS+LyumN6nndn%tCzoswJ0#!k-J`S;7-2nszY{y&=0X?6(xv*2Hrq zT3LyPlr$en<-2V4RMpv z`A^I#Yp!`*J()LC5oaSm<5^Yp6sDbEAvY@NBeg%oINiRJpL2_iXxlbea}w2t{Z41s zP~wq2m(=pPTsqs?^a37_c3-ZcWpifQk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p63Q*8VXydSn03{89Uj7Prk6u{D~WBgc}IB!Jy zlB4fghL_m^N8jXl20m3o6sF7`z0L&hP3;G=0>{>6@CY1xx?mM@r%L_(XD^Mp^- zFFtxCgArSYvTEpxRa4C5Ae(Hf8SJlLm1if8;lyE{U)vdcQoc_EZ5fG|F&A&#Omna z`2TKlZ50Y4oqzZ7srFfbfDu4~08qPm`8R>~;@|c&9s;z2lYaNGawCnueQ~i5a3D24 zdj|5evjD~Yr`?*x7myi%pibWQ<0k?75CCI40dX4gi}L$<`E?v1WPQU1YRCN8rYHW3 zog2{3_;G`${ea6XlV6JZZMfiHr0(coK*kTJefAWf)Hq7x*1-FCe~NpiWD0vra{pIS zVY_|a8IzhUHw`uwQAEyx0<^-(S+&p`qkoo~#)5qq4HD$d)Z6;;pE~fMHT5uSyq2Fq zQ)uXNdq)&u?8^m+Bm64eGO*rHL*VEg63@>Uuz0mB101x@sFzD_RgQv+eK8t;_Vn(T uigDPDOgGivNZ@%9J9Y~>r(_tN%$6GbP}DdS-MRJi;d^=}cQCgeNB$T6d)UGN literal 0 HcmV?d00001 From f6aaa6e9e0933cd23d361a4bf0ce9ba3a5ef68b2 Mon Sep 17 00:00:00 2001 From: nnmv892 <72543416+nnmv892@users.noreply.github.com> Date: Thu, 7 Jan 2021 03:24:39 -0500 Subject: [PATCH 25/46] Add files via upload From 2c513575eb1cfd00e0cbc50afb913f61ebab98a6 Mon Sep 17 00:00:00 2001 From: nnmv892 <72543416+nnmv892@users.noreply.github.com> Date: Thu, 7 Jan 2021 04:46:40 -0500 Subject: [PATCH 26/46] Create kt01_c --- "B\303\240i t\341\272\255p 3/kt01/kt01_c" | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 "B\303\240i t\341\272\255p 3/kt01/kt01_c" diff --git "a/B\303\240i t\341\272\255p 3/kt01/kt01_c" "b/B\303\240i t\341\272\255p 3/kt01/kt01_c" new file mode 100644 index 0000000..74f6bfa --- /dev/null +++ "b/B\303\240i t\341\272\255p 3/kt01/kt01_c" @@ -0,0 +1,12 @@ +#include +int main() { + printf("BANG CUU CHUONG");printf("\n"); + printf("Bang 2");printf("\n"); + printf("2*1=2\n2*2=4\n2*3=6\n"); + printf("Bang 3");printf("\n"); + printf("3*1=3\n3*2=6\n3*3=9\n"); + printf("Bang 4");printf("\n"); + printf("4*1=4\n4*2=8\n4*3=12"); + return 0; + +} From 4ab91796336847a18c2f918db9bcb4f7ce01067b Mon Sep 17 00:00:00 2001 From: nnmv892 <72543416+nnmv892@users.noreply.github.com> Date: Thu, 7 Jan 2021 04:47:37 -0500 Subject: [PATCH 27/46] Create kt01_c --- "B\303\240i t\341\272\255p 3/kt01_c" | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 "B\303\240i t\341\272\255p 3/kt01_c" diff --git "a/B\303\240i t\341\272\255p 3/kt01_c" "b/B\303\240i t\341\272\255p 3/kt01_c" new file mode 100644 index 0000000..74f6bfa --- /dev/null +++ "b/B\303\240i t\341\272\255p 3/kt01_c" @@ -0,0 +1,12 @@ +#include +int main() { + printf("BANG CUU CHUONG");printf("\n"); + printf("Bang 2");printf("\n"); + printf("2*1=2\n2*2=4\n2*3=6\n"); + printf("Bang 3");printf("\n"); + printf("3*1=3\n3*2=6\n3*3=9\n"); + printf("Bang 4");printf("\n"); + printf("4*1=4\n4*2=8\n4*3=12"); + return 0; + +} From 30d7038d68c1d1d7bcff9b31b36bfafe23d4476b Mon Sep 17 00:00:00 2001 From: nnmv892 <72543416+nnmv892@users.noreply.github.com> Date: Thu, 7 Jan 2021 04:50:09 -0500 Subject: [PATCH 28/46] Rename kt01_c to kt01.c --- .../kt01_c" => "B\303\240i t\341\272\255p 3/kt01.c" | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename "B\303\240i t\341\272\255p 3/kt01_c" => "B\303\240i t\341\272\255p 3/kt01.c" (100%) diff --git "a/B\303\240i t\341\272\255p 3/kt01_c" "b/B\303\240i t\341\272\255p 3/kt01.c" similarity index 100% rename from "B\303\240i t\341\272\255p 3/kt01_c" rename to "B\303\240i t\341\272\255p 3/kt01.c" From b9cbaa7e8d3318aabc066888ee94e1d994eb4729 Mon Sep 17 00:00:00 2001 From: nguyenminhvuong20002 <72543416+nguyenminhvuong20002@users.noreply.github.com> Date: Fri, 8 Jan 2021 09:46:04 +0700 Subject: [PATCH 29/46] Create kt04.c --- "B\303\240i t\341\272\255p 3/kt04.c" | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 "B\303\240i t\341\272\255p 3/kt04.c" diff --git "a/B\303\240i t\341\272\255p 3/kt04.c" "b/B\303\240i t\341\272\255p 3/kt04.c" new file mode 100644 index 0000000..0945173 --- /dev/null +++ "b/B\303\240i t\341\272\255p 3/kt04.c" @@ -0,0 +1,11 @@ +#include +int main() { +int n = 123; +int s = 0; +while(n!=0){ + s = s + n%10; + n = n/10; + } +printf("s = %d",s); +return 0; +} From 291f8cbe30b78444fc974217036ffe63a41b9423 Mon Sep 17 00:00:00 2001 From: nguyenminhvuong20002 <72543416+nguyenminhvuong20002@users.noreply.github.com> Date: Fri, 8 Jan 2021 10:36:30 +0700 Subject: [PATCH 30/46] Create kt03.c --- "B\303\240i t\341\272\255p 3/kt03.c" | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 "B\303\240i t\341\272\255p 3/kt03.c" diff --git "a/B\303\240i t\341\272\255p 3/kt03.c" "b/B\303\240i t\341\272\255p 3/kt03.c" new file mode 100644 index 0000000..7d03aef --- /dev/null +++ "b/B\303\240i t\341\272\255p 3/kt03.c" @@ -0,0 +1,11 @@ +#include +int main() +{ + int a; + for(a = 1; a <= 20; a+=2) +{ + if((a == 5) or (a == 11) or (a == 15))continue; + printf("%5d", a); +} + return 0; +} From 933df4f97b1fb9638f551609983da0692467e081 Mon Sep 17 00:00:00 2001 From: nguyenminhvuong20002 <72543416+nguyenminhvuong20002@users.noreply.github.com> Date: Fri, 8 Jan 2021 14:23:59 +0700 Subject: [PATCH 31/46] Create kt06.c --- "B\303\240i t\341\272\255p 3/kt06.c" | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 "B\303\240i t\341\272\255p 3/kt06.c" diff --git "a/B\303\240i t\341\272\255p 3/kt06.c" "b/B\303\240i t\341\272\255p 3/kt06.c" new file mode 100644 index 0000000..5d2b61c --- /dev/null +++ "b/B\303\240i t\341\272\255p 3/kt06.c" @@ -0,0 +1,23 @@ +#include +int n; +int main(){ + printf("nhap n"); + scanf("%d", &n); + switch(n){ + case 1: + printf("*"); + break; + case 2: + printf("\t*\n*\t*\t*"); + break; + case 3: + printf("\t\t*\n\t*\t*\t*\n*\t*\t*\t*\t*"); + break; + case 4: + printf("\t\t\t*\n\t\t*\t*\t*\n\t*\t*\t*\t*\t*\n*\t*\t*\t*\t*\t*\t*"); + break; +} + getchar(); + return 0; +} + From 3e2ee6b4cb20d6626f5f88024effe84ba2097371 Mon Sep 17 00:00:00 2001 From: nguyenminhvuong20002 <72543416+nguyenminhvuong20002@users.noreply.github.com> Date: Thu, 14 Jan 2021 02:43:50 -0500 Subject: [PATCH 32/46] Create mang_01.c --- "B\303\240i t\341\272\255p 4/mang_01.c" | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 "B\303\240i t\341\272\255p 4/mang_01.c" diff --git "a/B\303\240i t\341\272\255p 4/mang_01.c" "b/B\303\240i t\341\272\255p 4/mang_01.c" new file mode 100644 index 0000000..9389865 --- /dev/null +++ "b/B\303\240i t\341\272\255p 4/mang_01.c" @@ -0,0 +1,14 @@ +#include + +int main() { + int a[4]={3,5,7,2}; + int i,sum=0; + + for(int i = 0; i < 4; ++i) { + printf("%d\n", a[i]); + sum +=a[i]; + + } + printf("TONG = %d ",sum); + return 0; +} From 29653b4042843ad5d4084da51bf76d376afa5493 Mon Sep 17 00:00:00 2001 From: nguyenminhvuong20002 <72543416+nguyenminhvuong20002@users.noreply.github.com> Date: Thu, 14 Jan 2021 03:55:33 -0500 Subject: [PATCH 33/46] Update mang_01.c --- "B\303\240i t\341\272\255p 4/mang_01.c" | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git "a/B\303\240i t\341\272\255p 4/mang_01.c" "b/B\303\240i t\341\272\255p 4/mang_01.c" index 9389865..8ad7840 100644 --- "a/B\303\240i t\341\272\255p 4/mang_01.c" +++ "b/B\303\240i t\341\272\255p 4/mang_01.c" @@ -2,13 +2,13 @@ int main() { int a[4]={3,5,7,2}; - int i,sum=0; + int k,tong=0; - for(int i = 0; i < 4; ++i) { - printf("%d\n", a[i]); - sum +=a[i]; - + for(int k = 0; k < 4; ++k){ + tong +=a[k]; + printf("%d\n", a[k]); } - printf("TONG = %d ",sum); + printf("TONG = %d",tong); return 0; } + From 44cde9071e2caddb91c43bfab56989df795366d5 Mon Sep 17 00:00:00 2001 From: nguyenminhvuong20002 <72543416+nguyenminhvuong20002@users.noreply.github.com> Date: Tue, 19 Jan 2021 03:59:33 -0500 Subject: [PATCH 34/46] Create mang_02.c --- "B\303\240i t\341\272\255p 4/mang_02.c" | 26 +++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 "B\303\240i t\341\272\255p 4/mang_02.c" diff --git "a/B\303\240i t\341\272\255p 4/mang_02.c" "b/B\303\240i t\341\272\255p 4/mang_02.c" new file mode 100644 index 0000000..218f44b --- /dev/null +++ "b/B\303\240i t\341\272\255p 4/mang_02.c" @@ -0,0 +1,26 @@ +#include + int main(){ + + int n; + printf("Nhap n = "); + scanf("%d", &n); + //tao namg a kich thuoc n + int a[n]; + //nhap n phan tu cua mang a tu ban phim + for(int i = 0 ;i < n; i++){ + printf("nhap phan tu thu %d",i + 1); + scanf("%d", &a[i]); + printf("\n"); + } + printf("mang a:"); + for(int i = 0 ;i < n; i++){ + printf("%d",a[i]); + + } + printf("\nso chan:"); + for(int i = 0; i Date: Tue, 19 Jan 2021 04:46:11 -0500 Subject: [PATCH 35/46] Create mang_04.c --- "B\303\240i t\341\272\255p 4/mang_04.c" | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 "B\303\240i t\341\272\255p 4/mang_04.c" diff --git "a/B\303\240i t\341\272\255p 4/mang_04.c" "b/B\303\240i t\341\272\255p 4/mang_04.c" new file mode 100644 index 0000000..b39ffc0 --- /dev/null +++ "b/B\303\240i t\341\272\255p 4/mang_04.c" @@ -0,0 +1,25 @@ +#include + int main(){ + + int n, i, s; + int a[n]; + printf("Nhap n = "); + scanf("%d", &n); + //tao namg a kich thuoc n + //nhap n phan tu cua mang a tu ban phim + for(int i = 0 ;i < n; i++){ + printf("nhap phan tu thu %d",i + 1); + scanf("%d", &a[i]); + printf("\n"); + } + printf("mang a:"); + for(int i = 0 ;i < n; i++){ + printf("%d",a[i]); + + } + for(int i = 0;i < n; i++){ + s+=a[i]; + } + printf("\nTong cua mang a la : %d", s); + return 0; +} From b3e85225401440e1e4426e32f4229527219660fd Mon Sep 17 00:00:00 2001 From: nguyenminhvuong20002 <72543416+nguyenminhvuong20002@users.noreply.github.com> Date: Thu, 21 Jan 2021 04:47:24 -0500 Subject: [PATCH 36/46] Create mang_05.c --- "B\303\240i t\341\272\255p 4/mang_05.c" | 28 +++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 "B\303\240i t\341\272\255p 4/mang_05.c" diff --git "a/B\303\240i t\341\272\255p 4/mang_05.c" "b/B\303\240i t\341\272\255p 4/mang_05.c" new file mode 100644 index 0000000..b3669d1 --- /dev/null +++ "b/B\303\240i t\341\272\255p 4/mang_05.c" @@ -0,0 +1,28 @@ +#include + int main(){ + + int n,k,m; + int a[n]; + printf("Nhap n = "); + scanf("%d", &n); + for(int i = 0 ;i < n; i++){ + printf("nhap phan tu thu %d",i+1); + scanf("%d", &a[i]); + printf("\n"); + } + printf("Mang a:"); + for(int i = 0 ;i < n; i++){ + printf("%d",a[i]); + } + printf("\nNhap m = "); + scanf("%d", &m); + for(int i = 0;i < n;i++){ + if(a[i] == m){ + k=+1; + break; + } + if(k > 0){printf("Co ton tai"); + } + else(printf("Khong ton tai")); + return 0; +}} From a1070815967ff6da40f4633e8726923ca900db9a Mon Sep 17 00:00:00 2001 From: nguyenminhvuong20002 <72543416+nguyenminhvuong20002@users.noreply.github.com> Date: Fri, 22 Jan 2021 08:15:22 +0700 Subject: [PATCH 37/46] Update mang_05.c --- "B\303\240i t\341\272\255p 4/mang_05.c" | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git "a/B\303\240i t\341\272\255p 4/mang_05.c" "b/B\303\240i t\341\272\255p 4/mang_05.c" index b3669d1..733cf01 100644 --- "a/B\303\240i t\341\272\255p 4/mang_05.c" +++ "b/B\303\240i t\341\272\255p 4/mang_05.c" @@ -18,11 +18,11 @@ scanf("%d", &m); for(int i = 0;i < n;i++){ if(a[i] == m){ - k=+1; + k+=1; break; - } + } } if(k > 0){printf("Co ton tai"); } else(printf("Khong ton tai")); return 0; -}} +} From ed0655e0a2088f873f34f22e042068c23f73c3ce Mon Sep 17 00:00:00 2001 From: nguyenminhvuong20002 <72543416+nguyenminhvuong20002@users.noreply.github.com> Date: Fri, 22 Jan 2021 09:31:03 +0700 Subject: [PATCH 38/46] Create ham_01.c --- "B\303\240i t\341\272\255p 5/ham_01.c" | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 "B\303\240i t\341\272\255p 5/ham_01.c" diff --git "a/B\303\240i t\341\272\255p 5/ham_01.c" "b/B\303\240i t\341\272\255p 5/ham_01.c" new file mode 100644 index 0000000..ea34ac1 --- /dev/null +++ "b/B\303\240i t\341\272\255p 5/ham_01.c" @@ -0,0 +1,12 @@ +#include +int sum(int a, int b, int c); +// khai ham main +int main(){ + int x = 11, y = 2, z = 8; + printf("x+y+z=%d",sum(x,y,z)); + return 0 ; +} +int sum(int a, int b, int c){ + int f=a+b+c; + return f; +} From 412d0d407340db6ea0beed3d9d43248c524279ff Mon Sep 17 00:00:00 2001 From: nguyenminhvuong20002 <72543416+nguyenminhvuong20002@users.noreply.github.com> Date: Fri, 22 Jan 2021 10:17:49 +0700 Subject: [PATCH 39/46] Create ham_21.c --- "B\303\240i t\341\272\255p 5/ham_21.c" | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 "B\303\240i t\341\272\255p 5/ham_21.c" diff --git "a/B\303\240i t\341\272\255p 5/ham_21.c" "b/B\303\240i t\341\272\255p 5/ham_21.c" new file mode 100644 index 0000000..ba94de4 --- /dev/null +++ "b/B\303\240i t\341\272\255p 5/ham_21.c" @@ -0,0 +1,20 @@ +//Khoi khai bao +#include +int kiem_tra_am_duong(int p); + + //khoi ham main +int main(){ + int n; + printf("Nhap n = "); + scanf("%d", &n); + if(kiem_tra_am_duong(n) > 0) + printf("n la so nguyen duong "); + else if (kiem_tra_am_duong(n) < 0) + printf("n la so nguyen âm"); + else + printf("n = 0"); + return 0; +} + int kiem_tra_am_duong(int p){ + return p; + } From c9c77844dc7128570b54c181bae0ed39f9f7e137 Mon Sep 17 00:00:00 2001 From: nguyenminhvuong20002 <72543416+nguyenminhvuong20002@users.noreply.github.com> Date: Fri, 22 Jan 2021 10:35:25 +0700 Subject: [PATCH 40/46] Rename ham_21.c to ham_02.c --- .../ham_21.c" => "B\303\240i t\341\272\255p 5/ham_02.c" | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename "B\303\240i t\341\272\255p 5/ham_21.c" => "B\303\240i t\341\272\255p 5/ham_02.c" (100%) diff --git "a/B\303\240i t\341\272\255p 5/ham_21.c" "b/B\303\240i t\341\272\255p 5/ham_02.c" similarity index 100% rename from "B\303\240i t\341\272\255p 5/ham_21.c" rename to "B\303\240i t\341\272\255p 5/ham_02.c" From 1c04f04de64a7436c31cba6ee5ec8236369b8bce Mon Sep 17 00:00:00 2001 From: nguyenminhvuong20002 <72543416+nguyenminhvuong20002@users.noreply.github.com> Date: Fri, 22 Jan 2021 21:15:40 -0500 Subject: [PATCH 41/46] Create LyThuyet.txt --- "B\303\240i t\341\272\255p 5/LyThuyet.txt" | 54 ++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 "B\303\240i t\341\272\255p 5/LyThuyet.txt" diff --git "a/B\303\240i t\341\272\255p 5/LyThuyet.txt" "b/B\303\240i t\341\272\255p 5/LyThuyet.txt" new file mode 100644 index 0000000..c09b632 --- /dev/null +++ "b/B\303\240i t\341\272\255p 5/LyThuyet.txt" @@ -0,0 +1,54 @@ +PHẦN 1 KIẾN THỨC +A) Bộ chữ viết trong ngôn ngữ C gồm: chữ in hoa và in thường. ++ 26 chữ cái latinh in hoa và in thường (A,B,C...Z ; a,b,c...z). Ngoài ra bộ viết trong ngôn ngữ C còn có 10 chữ số thập phân:( 1,2,3,4,5,6,7,8,9). Các kí tự toán học: (+, -, *, /, =, <, >, (, ). Và các kí hiệu đặc biệt: (:. , ; " ' _ @ # $ ! ^ [ ] { } ...). ++ Dấu cách hay khoản trắng, xuống hàng (\n) và tab (\t). + +B) Các kiểu dữ liệu cơ sở của C: +Bất cứ chương trình ứng dụng nào cần sử lý giữ liệu cũng cần có nơi để lưu trữ tạm thời dữ liệu ấy .Nơi mà giữu liệu được lưu trữ vào bộ nhớ . +Kiểu dữ liệu quy định kích thước bộ nhớ nơi dữ liệu được lưu trữ . +Dữ liệu chương trình có nhiều dạng như số (number) , chuổi (sting hay text ),... +C) Khái niệm và cú pháp khai báo biến trong ngôn ngữ C: +Một chương trình ứng dụng có thể quản lý nhiều loại dữ liệu . trong trường hợp này, chương trình phải chỉ đạo bộ nhớ cho mỗi đơn vị dữ liệu. Khi chỉ định bộ nhớ, có hai điểm cần chú ý như sau : +Kích thước bộ nhớ ( kiểu dữ kiệu ). +Vị trí bộ nhớ ( địa chỉ bộ nhớ). +Các ngôn ngữ lập trình hiện đại cho phép chúng ta sử dụng các tên tượng trương gọi là biến , chỉ đến một vùng của bộ nhớ nơi mà các giá trị cụ thể được lưu trữ. +Hệ điều hành hoạt đông như một giao diện giửa các ô nhớ và lập trình viên. Lập trình viên không cần lưu tâm vị trí ô nhớ mà để cho hệ điều hành đảm nhiệm. +Biến có thể khai báo theo cú pháp: +Kiểu_dữ_liệu Tên_biến +Trong đó Kiểu_dữ_liệu là kiểu dữ liệu; Tên_biến là tên biến; kết thúc khai báo biến là dấu chấm phẩy. +Ví dụ : int num ; -> là kiểu dữ liệu, num là tên biến. +D) Khái niệm biến toàn cục và biến cục bộ trong ngôn ngữ C: ++ biến toàn cục (golbal variable): +Được khai báo bên ngoài tất cả các hàm (kể cả main) +Thường được khai báo tại khối khai báo +Có thể được sử dụng tại mọi vị trí trong chương trình như các hàm, khối lệnh lặp for hay while. ++ biến cục bộ hay địa phương(local variable): +Được khai báo trên các hàm hay khối lệnh (ví dụ: biến đếm lệnh lặp for) +Chỉ có thể được sử dụng trong phạm vi hàm hay khối lệnh +Các tham số của ham (nếu có) là các biến cục bộ của hàm đó. +E) Khái niệm và hàm trong ngôn ngữ C: ++ biến toàn cục (golbal variable): +Được khai báo bên ngoài tất cả các hàm (kể cả main) +Thường được khai báo tại khối khai báo +Có thể được sử dụng tại mọi vị trí trong chương trình như các hàm, khối lệnh lặp for hay while. ++ biến cục bộ hay địa phương(local variable): +Được khai báo trên các hàm hay khối lệnh (ví dụ: biến đếm lệnh lặp for) +Chỉ có thể được sử dụng trong phạm vi hàm hay khối lệnh +Các tham số của ham (nếu có) là các biến cục bộ của hàm đó. +E/ Trình bày khái niệm và phân loại hàm trong ngôn ngữ C. +Hàm Là một khối lệnh (nhiều lệnh) thực hiện một nhiệm vụ cụ thể nào đó (tính tổng, hiện thị thông báo đến người dùng,...) +Một cách hiểu khác về hàm: hàm là một sự chia nhỏ của chương trình ++ phân loại hàm (types of function): +Hàm có 2 loại: +Hàm thư viện chuẩn (Standard library funcitions): +Là các hàm được xây dựng sẵn (bulid_in functions) trong ngôn ngữ C như hàm sacnf, printf,getchar,... +Các hàm này được định nghĩa trong các tập tin có phần mở rộng .h như stdio.h, conio.h,.. Các tập tin này phải được gộp vào chương trihf thông qua chỉ định #include +Hàm do nguoiwd dùng ddingj nghĩa (Uer-defined funcyions): định ngĩa theo nu cầu người dùng. Các phần tiếp theo sẽ tìm hiểu vê cú pháp khai báo, định ngĩa và gọi hàm loại này. + +F) Nguyên tắc hoạt động cảu hàm trong ngôn ngữ C: Nguyên tắc hoạt động cảu hàm trong ngôn ngữ + Khi máy gặp lời gọi hàm ở bất kỳ chỗ nào đó thì hàm bắt đầu được thực hiện, tức sẽ rời chỗ đó để đi đến hàm được gọi. + Nếu là hàm có tham số thì máy sẽ thực hiện truyền tham số thực cho các tham số hình thức tương ứng trong hàm. + Máy bắt đầu thực hiện lần lượt các câu lệnh trong thân hàm đến khi nào lệnh reuturn hoặc dấu } của hàm thì dừng lại thoát khỏi hàm trở về chương trình đã gọi nó và thực hiện tiếp các câu lệnh của chương trình này. +Nếu hàm trả về giá trị thì giá trị của biểu + + From 55db7bab54f88535bc95c797060e1466eda264ff Mon Sep 17 00:00:00 2001 From: nguyenminhvuong20002 <72543416+nguyenminhvuong20002@users.noreply.github.com> Date: Fri, 22 Jan 2021 21:50:56 -0500 Subject: [PATCH 42/46] Create TH_02.c --- "B\303\240i t\341\272\255p 5/TH_02.c" | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 "B\303\240i t\341\272\255p 5/TH_02.c" diff --git "a/B\303\240i t\341\272\255p 5/TH_02.c" "b/B\303\240i t\341\272\255p 5/TH_02.c" new file mode 100644 index 0000000..a0b8a1c --- /dev/null +++ "b/B\303\240i t\341\272\255p 5/TH_02.c" @@ -0,0 +1,18 @@ +#include +int main() +{ + int a, k; + long s; + s = 0; + a = 1; + printf("\nNhap k: "); + scanf("%d", &k); + + while(a <= k) + { + s = s + a; + a++; + } + printf("\nTong 1 + 2 + ... + %d la %ld: ", k, s); + return 0; +} From fca2075e5d27114e088206363bdd22f199c4f9af Mon Sep 17 00:00:00 2001 From: nguyenminhvuong20002 <72543416+nguyenminhvuong20002@users.noreply.github.com> Date: Fri, 22 Jan 2021 22:07:58 -0500 Subject: [PATCH 43/46] Create TH_03.c --- "B\303\240i t\341\272\255p 5/TH_03.c" | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 "B\303\240i t\341\272\255p 5/TH_03.c" diff --git "a/B\303\240i t\341\272\255p 5/TH_03.c" "b/B\303\240i t\341\272\255p 5/TH_03.c" new file mode 100644 index 0000000..ed2d5fb --- /dev/null +++ "b/B\303\240i t\341\272\255p 5/TH_03.c" @@ -0,0 +1,24 @@ +#include +int So_lon_nhat_la (); +int main() { + int a, b, c; + printf("nhap a : "); + scanf("%d", &a); + printf("nhap b : "); + scanf("%d", &b); + printf("nhap c : "); + scanf("%d", &c); + if(a>b &&a>c) + printf("so lon nhat : %d",a); + + if (b>a&& b>c) + printf("so lon nhat : %d",b); + + if (c>a&&c>b) + + printf("so lon nhat : %d",c); + return 0; +} +int So_lon_nhat_la (){ + return 0; +} From 5d3ddd1914053b0ba37ce8773648500e58fdd2e7 Mon Sep 17 00:00:00 2001 From: nguyenminhvuong20002 <72543416+nguyenminhvuong20002@users.noreply.github.com> Date: Sat, 20 Mar 2021 14:32:18 +0700 Subject: [PATCH 44/46] Create yeucau1.c --- yeucau1.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 yeucau1.c diff --git a/yeucau1.c b/yeucau1.c new file mode 100644 index 0000000..207c1f7 --- /dev/null +++ b/yeucau1.c @@ -0,0 +1,13 @@ +#include + +int main(void) { + int n,S; + S = 0; + printf ("Nhap n: "); + scanf ("%d",&n); + for (int i = 1; i<=n; i++){ + S = (n*(n+1)*(2*n+1))/6; + } + printf ("S = 1^2 + 2^2+...+ %d^2 = %d",n,S); + return 0; +} From eba85b9106c959c765229972eab646d54a60ff6b Mon Sep 17 00:00:00 2001 From: nguyenminhvuong20002 <72543416+nguyenminhvuong20002@users.noreply.github.com> Date: Sat, 20 Mar 2021 14:37:04 +0700 Subject: [PATCH 45/46] Create yeucau2.c --- yeucau2.c | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 yeucau2.c diff --git a/yeucau2.c b/yeucau2.c new file mode 100644 index 0000000..2af238f --- /dev/null +++ b/yeucau2.c @@ -0,0 +1,20 @@ +#include + +int main(void) { + // khai bao bien R kieu double; + double R = 2.5; + // khai bao hang ten PI kieu double; + double PI = 3.14; + // khai bao cac bien CV va DT kieu double; + double CV, DT; + printf ("R = %.1f,R",R); + printf ("\t"); + printf ("PI = %.2f,PI",PI); + CV = 2*R*PI; + DT = R*R*PI; + printf ("\n2*R*PI\nR*R*Pi \n"); + printf ("\n"); + printf ("CV = %.1f \t DT = %.2f",CV, DT); + getchar() ; + return 0; +} From e950de8149feab595cbd5b1013a490c47fe1d082 Mon Sep 17 00:00:00 2001 From: nguyenminhvuong20002 <72543416+nguyenminhvuong20002@users.noreply.github.com> Date: Sat, 20 Mar 2021 15:00:08 +0700 Subject: [PATCH 46/46] Create yeucau3.c --- yeucau3.c | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 yeucau3.c diff --git a/yeucau3.c b/yeucau3.c new file mode 100644 index 0000000..22812e8 --- /dev/null +++ b/yeucau3.c @@ -0,0 +1,29 @@ +//khoi khai bao +#include + +int BCNN(int a, int b); + +//khoi ham main +int main(void) { + int a, b; + printf("nhap a ="); + scanf("%d", &a); + printf("nha b ="); + scanf("%d", &b); + + BCNN(a,b); + printf("\nBCNN la : %d", BCNN(a,b)); + return 0; +} +//khoi dinh nghia ham +//tim UCLN +int UCLN(int a, int b){ + if(b == 0) + return a; + else + return UCLN(b, a%b); + } + //Tim BCNN +int BCNN(int a, int b){ + return a*b/UCLN(a,b); + }