diff --git a/Codeforce/.cph/.A_1_to_N.c_ad409505dd9f327f5f1e5f7c3b936402.prob b/Codeforce/.cph/.A_1_to_N.c_ad409505dd9f327f5f1e5f7c3b936402.prob new file mode 100644 index 0000000..24804ca --- /dev/null +++ b/Codeforce/.cph/.A_1_to_N.c_ad409505dd9f327f5f1e5f7c3b936402.prob @@ -0,0 +1 @@ +{"name":"A. 1 to N","group":"Codeforces - Sheet #2 (Loops)","url":"https://codeforces.com/group/MWSDmqGsZm/contest/219432/problem/A","interactive":false,"memoryLimit":256,"timeLimit":1000,"tests":[{"id":1697472904833,"input":"5","output":"1\n2\n3\n4\n5"}],"testType":"single","input":{"type":"stdin"},"output":{"type":"stdout"},"languages":{"java":{"mainClass":"Main","taskClass":"A1ToN"}},"batch":{"id":"e58abc0e-da71-4b62-9e52-fb72f050cff2","size":1},"srcPath":"h:\\Github\\Programming\\Codeforce\\A_1_to_N.c"} \ No newline at end of file diff --git a/Codeforce/.cph/.A_Create_A_New_String.c_787b67da2ab24a7203efbd0d17860e1a.prob b/Codeforce/.cph/.A_Create_A_New_String.c_787b67da2ab24a7203efbd0d17860e1a.prob new file mode 100644 index 0000000..1baabf8 --- /dev/null +++ b/Codeforce/.cph/.A_Create_A_New_String.c_787b67da2ab24a7203efbd0d17860e1a.prob @@ -0,0 +1 @@ +{"name":"A. Create A New String","group":"Codeforces - Sheet #4 (Strings)","url":"https://codeforces.com/group/MWSDmqGsZm/contest/219856/problem/A","interactive":false,"memoryLimit":256,"timeLimit":1000,"tests":[{"input":"LEVEL\nONE","output":"5 3\nLEVEL ONE","id":1697593365387},{"input":"Programming\ncontest","output":"11 7\nProgramming contest","id":1697593365385}],"testType":"single","input":{"type":"stdin"},"output":{"type":"stdout"},"languages":{"java":{"mainClass":"Main","taskClass":"ACreateANewString"}},"batch":{"id":"9954cc2d-7472-49ba-bc6d-c2a24e66c8fe","size":1},"srcPath":"h:\\Github\\Programming\\Codeforce\\A_Create_A_New_String.c"} \ No newline at end of file diff --git a/Codeforce/.cph/.B_Let_s_use_Getline.c_1021831a6460ecd24aa2995b5b16dbb0.prob b/Codeforce/.cph/.B_Let_s_use_Getline.c_1021831a6460ecd24aa2995b5b16dbb0.prob new file mode 100644 index 0000000..2569149 --- /dev/null +++ b/Codeforce/.cph/.B_Let_s_use_Getline.c_1021831a6460ecd24aa2995b5b16dbb0.prob @@ -0,0 +1 @@ +{"name":"B. Let's use Getline","group":"Codeforces - Sheet #4 (Strings)","url":"https://codeforces.com/group/MWSDmqGsZm/contest/219856/problem/B","interactive":false,"memoryLimit":64,"timeLimit":1000,"tests":[{"input":"Egyptian collegiate programming\\ contest\n","output":"Egyptian collegiate programming\n","id":1697594429818},{"input":"google \\or facebook\n","output":"google\n","id":1697594429856}],"testType":"single","input":{"type":"stdin"},"output":{"type":"stdout"},"languages":{"java":{"mainClass":"Main","taskClass":"BLetsUseGetline"}},"batch":{"id":"a09f3123-ceeb-463b-a818-cf4d2da87985","size":1},"srcPath":"h:\\Github\\Programming\\Codeforce\\B_Let_s_use_Getline.c"} \ No newline at end of file diff --git a/Codeforce/A_1_to_N.c b/Codeforce/A_1_to_N.c new file mode 100644 index 0000000..7bef079 --- /dev/null +++ b/Codeforce/A_1_to_N.c @@ -0,0 +1,12 @@ +#include +int main() +{ + int n; + scanf("%d", &n); + for (int i = 1; i <= n; i++) + { + printf("%d\n", i); + } + + return 0; +} \ No newline at end of file diff --git a/Codeforce/A_Create_A_New_String.c b/Codeforce/A_Create_A_New_String.c new file mode 100644 index 0000000..6b8d524 --- /dev/null +++ b/Codeforce/A_Create_A_New_String.c @@ -0,0 +1,15 @@ +#include +#include +int main() +{ + char a[1001]; + char b[1001]; + scanf("%s %s", a, b); + int length_a = strlen(a); + int length_b = strlen(b); + + printf("%d %d\n", length_a, length_b); + printf("%s %s", a, b); + + return 0; +} \ No newline at end of file diff --git a/Codeforce/B_Let_s_use_Getline.c b/Codeforce/B_Let_s_use_Getline.c new file mode 100644 index 0000000..e69de29 diff --git a/Codeforce/1/Codeforce.cpp b/Codeforce/Codeforce.cpp similarity index 100% rename from Codeforce/1/Codeforce.cpp rename to Codeforce/Codeforce.cpp diff --git a/Codeforce/1/Codeforce.exe b/Codeforce/Codeforce.exe similarity index 100% rename from Codeforce/1/Codeforce.exe rename to Codeforce/Codeforce.exe diff --git a/Codeforce/1/Codeforce.o b/Codeforce/Codeforce.o similarity index 100% rename from Codeforce/1/Codeforce.o rename to Codeforce/Codeforce.o diff --git a/Node JS/index.js b/Node JS/index.js new file mode 100644 index 0000000..c37ac93 --- /dev/null +++ b/Node JS/index.js @@ -0,0 +1,10 @@ +// setTimeout(() => { +// console.log('test'); +// }, 1000); + +// a=5; +// console.log(global.a); + + +console.log(__dirname); +console.log(__filename); \ No newline at end of file diff --git a/Node JS/tempCodeRunnerFile.js b/Node JS/tempCodeRunnerFile.js new file mode 100644 index 0000000..ed90465 --- /dev/null +++ b/Node JS/tempCodeRunnerFile.js @@ -0,0 +1,3 @@ +setTimeout(() => { +// console.log('test'); +// }, 1000); \ No newline at end of file diff --git a/Python/first.py b/Python/first.py new file mode 100644 index 0000000..a376d9b --- /dev/null +++ b/Python/first.py @@ -0,0 +1,6 @@ +print('Shakil') + +a=5 + +for i in range(1,10): + print(f' 5 * {i} = {a*i}') \ No newline at end of file diff --git a/Python/string.py b/Python/string.py new file mode 100644 index 0000000..4de296e --- /dev/null +++ b/Python/string.py @@ -0,0 +1,34 @@ +# print("Hello") +# print('Hello') + +# a = "Hello" +# print(a) + +# a = """Lorem ipsum dolor sit amet, +# consectetur adipiscing elit, +# sed do eiusmod tempor incididunt +# ut labore et dolore magna aliqua.""" +# print(a) + +# a = "Hello, World!" +# print(a[1]) + +# for x in "Banana": +# print(x) + +# a = "Hello, World!" +# print(len(a)) + +# txt = "The best things in life are free!" +# print("free" in txt) + +# txt = "The best things in life are free!" +# if "free" in txt: +# print("Yes, 'free' is present.") + +# txt = "The best things in life are free!" +# print("expensive" not in txt) + +txt = "The best things in life are free!" +if "expensive" not in txt: + print("No, 'expensive' is NOT present.") \ No newline at end of file diff --git a/Python/tempCodeRunnerFile.py b/Python/tempCodeRunnerFile.py new file mode 100644 index 0000000..a939d83 --- /dev/null +++ b/Python/tempCodeRunnerFile.py @@ -0,0 +1,3 @@ +txt = "The best things in life are free!" +# if "free" in txt: +# print("Yes, 'free' is present.") \ No newline at end of file diff --git a/javascript/class1.js b/javascript/class1.js new file mode 100644 index 0000000..62e6f0d --- /dev/null +++ b/javascript/class1.js @@ -0,0 +1,19 @@ + +// javascript variable + +var name = "Md. Shakil Hossain"; +var number = 15; +console.log(name); +console.log(number); + +let a = 10; +console.log(a); + + +const b = 20; +console.log(b); + + +// browser +var x = prompt("input x"); +console.log(x); \ No newline at end of file