Time to Learn Objective-C





Our first assignment for our Advanced OO Programming class was to read Chapters 1 - 3 in this book, as well as completing one of the Challenges. I submitted mine in already, and it is posted below.

//Jeremy Lecus

//First Assignment

//Advanced OO Programming - Judy Ligocki

//9/1/2014


#include <stdio.h>


int main (int argc, const char * argv[])

{

   //Declare two variables of type float

   float a = 5.66;

   float b = 1.86;


   //Declare variable of type Double, assign the SUM of the two floats

   double c = a + b;


   //Print out the result

   printf (“Sum of the Variables: %f\n”, c);


   return 0;

}

Most Popular Blog Posts!