Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- float pole_kwadratu(float a);
- int main(void) {
- float bok;
- float pole;
- printf("Podaj dl. boku: ");
- scanf("%f", &bok);
- pole=pole_kwadratu(bok);
- printf("Pole kw=%f", pole);
- return 0;
- }
- float pole_kwadratu(float a)
- {
- float p;
- p=a*a;
- return p;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement