SHARE
TWEET

CCCNICE

a guest Aug 22nd, 2019 91 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top