Pabon_SEC

Beautiful Flag

Feb 17th, 2016
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.37 KB | None | 0 0
  1. #include<stdio.h>
  2.  
  3. int main()
  4. {
  5.     long long int T,R,i,a,b,c,L,W;
  6.  
  7.     scanf("%lld",&T);
  8.  
  9.     for(i=1;i<=T;i++)
  10.     {
  11.         scanf("%lld",&R);
  12.  
  13.         L=5*R;
  14.         W=3*R;
  15.         a=(4.5*L)/10;
  16.         b=(5.5*L)/10;
  17.         c=W/2;
  18.  
  19.         printf("Case %lld:\n-%lld %lld\n%lld %lld\n%lld -%lld\n-%lld -%lld\n",i,a,c,b,c,b,c,a,c);
  20.     }
  21.     return 0;
  22. }
Advertisement
Add Comment
Please, Sign In to add comment