Advertisement
Guest User

skenggg

a guest
May 27th, 2015
240
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3. float brzina(float a, float b)
  4. {
  5. float c;
  6. c=a/b;
  7. return c;
  8. }
  9.  
  10.  
  11. int main()
  12. {
  13. int s, t, v;
  14.  
  15. printf("unesite predjeni put :");
  16. scanf("%d", &s);
  17.  
  18. printf("unesite vreme :");
  19. scanf("%d", &t);
  20.  
  21. printf("brzina je %.2f m/s \n", brzina (s, t));
  22.  
  23. system("pause");
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement