Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main()
- {
- int a,n,i,j,w,s,e,count=3;
- scanf("%d",&a);
- for(i=0; i<a; i++)
- {
- if(i==0)
- {
- scanf("%d",&n);
- w=0;
- s=n;
- e=n+10;
- printf("%ds, %ds, %ds\n",w,s,e);
- }
- else
- {
- scanf("%d",&n);
- w=e-n;
- s=e;
- e=s+10;
- printf("%ds, %ds, %ds\n",w,s,e);
- }
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement