Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- int main()
- {
- int x,y,n,i;
- double res;
- scanf("%d",&n);
- for(i=1;i<=n;i++)
- {
- scanf("%d %d",&x,&y);
- if(y!=0)
- {
- res=(double)x/y;
- printf("%.1lf\n",res);
- }
- else
- printf("divisao impossivel\n");
- x=0;
- y=0;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement