Advertisement
Guest User

Untitled

a guest
Oct 15th, 2019
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.23 KB | None | 0 0
  1. #include <iostream>
  2. #include <iomanip>
  3.  
  4. int main(){
  5.     int a,b,n;
  6.     std::cin>>a;
  7.     std::cin>>b;
  8.     std::cin>>n; //rzÄ…d 100
  9.     double d = (double) a/b;
  10.     std::cout<<std::fixed;
  11.     std::cout << std::setprecision(n) << d;
  12.     return 0;
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement