Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- mail.c
- #include <stdio.h>
- #include <stdlib.h>
- #include <string.h>
- #include "libarea.h"
- int main()
- { int a,h,s;
- scanf("%i%i", &a,&h);
- printf("%f", st(a, h));
- return 0;
- }
- libarea.c
- float st(float a, float h){
- return a * h / 2.0;
- }
- float sp(float a, float b){
- return a*b;
- }
- float sc(float r){
- return r*r*3.14;
- }
- libarea.h
- float st(float a, float h);
- float sp(float a, float b);
- float sc(float r);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement