Advertisement
S_h_u_v_r_o

1042

Oct 17th, 2018
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. #include<stdio.h>
  2. int main()
  3. {
  4. int a,c;
  5. float i,j,b=3;
  6. for(i=0; i<=2.1; i+=.2)
  7. {
  8. for(j=1; j<=b; j++)
  9. {
  10. if(i>0&&i<1 || i>1&&i<2)
  11. {
  12. printf("I=%.1f J=%.1f\n",i,i+j);
  13. }
  14. else
  15. {
  16. a=i;
  17. c=i+j;
  18. printf("I=%d J=%d\n",a,c);
  19. }
  20. }
  21. }
  22.  
  23. return 0;
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement