Advertisement
LegoDrifter

K.A Funkcii 1

Dec 20th, 2019
188
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.19 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. int f(int broj){
  4.     int x;
  5. x=broj*broj;
  6. return x;
  7. }
  8. int main()
  9. {
  10.     int n;
  11.     scanf("%d",&n);
  12.     printf("%.2f",(float)f(n));
  13. return 0;
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement