Created
February 26, 2018 16:28
-
-
Save northofnormal/74487dd6296ec565833fbc2959c89830 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
int main (void) { | |
float d = 6.5; | |
float half, square, cube; | |
half = d/2; | |
square = d*d; | |
cube = d*d*d; | |
printf("\nYour number is %.2f\n", d); | |
printf("\nHalf of that is %.2f\n", half); | |
printf("\nSquare it to get %.2f\n", square); | |
printf("\nCube it to get %.2f\n", cube); | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment