Advertisement
LickiPrsut

PRG_Vjezba02_29.9.16

Sep 29th, 2016
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.31 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <math.h>
  3.  
  4. int main() {
  5.    
  6.     /* Vjezba 02: Tabelirani ispis funkcije korjen iz 2
  7.     Autor:
  8.     Datum: 29.9.2016
  9.     */
  10.    
  11.     float x;
  12.     int i;
  13.    
  14.     x=0;
  15.     for(i=1;i<=100;i++){
  16.         x=x+1;
  17.         printf("\n%3.0f\t%6.3f",x,sqrt(x));
  18.     }
  19.     return 0;
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement