Advertisement
Guest User

CCCNICE

a guest
Aug 22nd, 2019
106
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. int a;
  3. float g,k;
  4. main(){
  5.     //a=98765;
  6.     //printf("%d",a/1000%10);
  7.     scanf("%f",&g);
  8.     //system("cls");
  9.     //printf("%.2f\n",g);
  10.     scanf("%f",&k);
  11.     //system("cls");
  12.     //printf("%.2f\n",g);
  13.     //printf("%.2f\n",k);
  14.     if(k==0)
  15.     { printf("error");
  16.     }
  17.     else
  18.     { printf("%.2f",g/k);
  19.     }
  20.  
  21.  
  22.  
  23.  
  24.  
  25.  
  26.  
  27.  
  28.  
  29.  
  30.  
  31.  
  32. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement