Created
August 1, 2018 08:18
-
-
Save ytakashina/debe5cd8269148128d559a94cc67af2d 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 <iostream> | |
#include <iomanip> | |
int main() | |
{ | |
int a, b; | |
std::cin >> a >> b; | |
std::cout << a / b << ' '; | |
std::cout << a % b << ' '; | |
std::cout << std::fixed << std::setprecision(8); | |
std::cout << (double) a / b << std::endl; | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment