Skip to content

Instantly share code, notes, and snippets.

@ytakashina
Created August 1, 2018 08:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ytakashina/debe5cd8269148128d559a94cc67af2d to your computer and use it in GitHub Desktop.
Save ytakashina/debe5cd8269148128d559a94cc67af2d to your computer and use it in GitHub Desktop.
#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