Skip to content

Instantly share code, notes, and snippets.

@richardwei6
Created October 17, 2021 03:20
Show Gist options
  • Save richardwei6/0f8e000685b155fe40e766876744be11 to your computer and use it in GitHub Desktop.
Save richardwei6/0f8e000685b155fe40e766876744be11 to your computer and use it in GitHub Desktop.
Coding Club C Workshop 2
#include <stdio.h>
#include <math.h>
int main(){
printf("\n%f", ceil(3.6));
printf("\n%f", ceil(3.3));
printf("\n%f", floor(3.6));
printf("\n%f", floor(3.2));
printf("\n%f", sqrt(16));
printf("\n%f", sqrt(7));
printf("\n%f", pow(2,4));
printf("\n%f", pow(3,3));
printf("\n%d", abs(-12));
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment