Advertisement
Guest User

Untitled

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