Created
August 16, 2017 14:06
-
-
Save sthoshi/2ea9ec42776358e619c921d8a77f66db to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<stdio.h> | |
int main(){ | |
int a,b,d,r; | |
double f; | |
scanf("%d %d",&a,&b); | |
d=a/b; | |
r=a%b; | |
f=(double)a/b; | |
printf("%d %d %.5f\n",d,r,f); | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment