Commits

Ramakrishna Reddy Yekulla committed dc12fb5

ex05 and ex06 daily code kata

Comments (0)

Files changed (5)

Binary file added.
+#include <stdio.h>
+
+/* This is a comment */
+
+int main(int argc, char *argv[])
+{
+  int distance = 100;
+
+  // This is also a comment
+  printf("you are %d miles away.\n", distance);
+  
+  return 0;
+
+}

lcthw/ex05.c~

Empty file added.
Binary file added.
+#include <stdio.h>
+
+int main(int argc, char *argv[])
+{
+  int distance = 100;
+  float power = 2.345f;
+  double super_power = 56789.4532;
+  char initial = 'A';
+  char first_name[] = "zed";
+  char last_name[] = "shaw";
+
+  printf("You are %d miles away.\n", distance);
+  printf("you have %f levels of power. \n", power);
+  printf("You have %f awesome super powers. \n", super_power);
+  printf("I have an initial %c. \n", initial);
+  printf("I have a first name %s. \n", first_name);
+  printf("I have a last name %s. \n", last_name);
+  printf("My whole name is %s %c. %s. \n", first_name, initial, last_name);
+
+  return 0;
+
+}