Advertisement
namereq

座標の表

Jul 16th, 2018
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.38 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3. int main(void)
  4. {
  5.     int i;
  6.     int zasekiNo[] = {1,5,8,10,15,16,20,22,25,30};
  7.     float xZahyo[] = {1.1, 3.4, 4.5, 2.3, 6.4, 7.6, 5.2, 1.7, 3.8, 5.8};
  8.     float yZahyo[] = {5.2, 1.6, 3.4, 2.6, 5.7, 7.8, 4.4, 3.5, 6.3, 6.3};
  9.    
  10.     printf("座席No X座標 Y座標\n");
  11.     for(i=0;i<10;i++) printf("%4d    %2.1f   %2.1f\n",zasekiNo[i],xZahyo[i],yZahyo[i]);
  12.    
  13.     return 0;
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement