From 64ef5c8a7c222add9e39437986ea86675c77666a Mon Sep 17 00:00:00 2001 From: Your Name Date: Sat, 2 May 2026 03:10:01 +0200 Subject: [PATCH] start king --- med/C-programming-a-modern-standard/dweight.c | 20 +++++++++++++++++++ med/C-programming-a-modern-standard/pun.c | 7 +++++++ qscr/c/{ => learnc}/aptr.c | 0 qscr/c/{ => learnc}/bsort.c | 0 qscr/c/learnc/linkedlist.c | 15 ++++++++++++++ qscr/c/{ => learnc}/pascaltriangle.c | 0 qscr/c/{ => learnc}/rec.c | 0 qscr/c/{ => learnc}/rec2.c | 0 8 files changed, 42 insertions(+) create mode 100644 med/C-programming-a-modern-standard/dweight.c create mode 100644 med/C-programming-a-modern-standard/pun.c rename qscr/c/{ => learnc}/aptr.c (100%) rename qscr/c/{ => learnc}/bsort.c (100%) create mode 100644 qscr/c/learnc/linkedlist.c rename qscr/c/{ => learnc}/pascaltriangle.c (100%) rename qscr/c/{ => learnc}/rec.c (100%) rename qscr/c/{ => learnc}/rec2.c (100%) diff --git a/med/C-programming-a-modern-standard/dweight.c b/med/C-programming-a-modern-standard/dweight.c new file mode 100644 index 0000000..aa30f6b --- /dev/null +++ b/med/C-programming-a-modern-standard/dweight.c @@ -0,0 +1,20 @@ +#include "stdlib.h" +#include "stdio.h" + +int main(void) +{ + float height, length, width, volume, weight; + printf("Enter height of box: "); + scanf("%f", &height); + printf("Enter length of box: "); + scanf("%f", &length); + printf("Enter width of box: "); + scanf("%f", &width); + + volume = height * length * width; + weight = (volume + 165) / 166; + + printf("Dimensions: %fx%fx%f\n", length, width, height); + printf("Volume: %f\n", volume); + printf("Weight: %f\n", weight); +} diff --git a/med/C-programming-a-modern-standard/pun.c b/med/C-programming-a-modern-standard/pun.c new file mode 100644 index 0000000..0aa031c --- /dev/null +++ b/med/C-programming-a-modern-standard/pun.c @@ -0,0 +1,7 @@ +#include "stdio.h" + +int main(void) +{ + printf("To C, or not to C: that is the question.\n"); + return 0; +} diff --git a/qscr/c/aptr.c b/qscr/c/learnc/aptr.c similarity index 100% rename from qscr/c/aptr.c rename to qscr/c/learnc/aptr.c diff --git a/qscr/c/bsort.c b/qscr/c/learnc/bsort.c similarity index 100% rename from qscr/c/bsort.c rename to qscr/c/learnc/bsort.c diff --git a/qscr/c/learnc/linkedlist.c b/qscr/c/learnc/linkedlist.c new file mode 100644 index 0000000..d8fa639 --- /dev/null +++ b/qscr/c/learnc/linkedlist.c @@ -0,0 +1,15 @@ +#include +#include + +struct node { + int val; + struct node * next; +}; + +struct node_t * head = NULL; +head = (struct node_T*)malloc(sizeof(struct node_t)); + +int main(){ + + return 0; +} diff --git a/qscr/c/pascaltriangle.c b/qscr/c/learnc/pascaltriangle.c similarity index 100% rename from qscr/c/pascaltriangle.c rename to qscr/c/learnc/pascaltriangle.c diff --git a/qscr/c/rec.c b/qscr/c/learnc/rec.c similarity index 100% rename from qscr/c/rec.c rename to qscr/c/learnc/rec.c diff --git a/qscr/c/rec2.c b/qscr/c/learnc/rec2.c similarity index 100% rename from qscr/c/rec2.c rename to qscr/c/learnc/rec2.c