Codesnipp.it Social Code Sharing

Amber Weinberg

Simple Variables & Types Exercise

by Amber Weinberg on Oct 27, 2011

// // main.c // TwoFloats // // Created by Amber Weinberg on 10/27/11. // Copyright (c) 2011 __MyCompanyName__. All rights reserved. // #include <stdio.h> int main (int argc, const char * argv[]) { // Create variables float firstOne = 14.2; float secondOne = 33.5; // Holding variable double thirdOne = firstOne + secondOne; printf("The sum of first and second variables is %f \n", thirdOne); return 0; }

Can't see the comments? Please login first :)