Your Name 7 mesi fa
parent
commit
64ef5c8a7c

+ 20 - 0
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);
+}

+ 7 - 0
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;
+}

+ 0 - 0
qscr/c/aptr.c → qscr/c/learnc/aptr.c


+ 0 - 0
qscr/c/bsort.c → qscr/c/learnc/bsort.c


+ 15 - 0
qscr/c/learnc/linkedlist.c

@@ -0,0 +1,15 @@
+#include <stdio.h>
+#include <stdlib.h>
+
+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;
+}

+ 0 - 0
qscr/c/pascaltriangle.c → qscr/c/learnc/pascaltriangle.c


+ 0 - 0
qscr/c/rec.c → qscr/c/learnc/rec.c


+ 0 - 0
qscr/c/rec2.c → qscr/c/learnc/rec2.c