Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // per.cpp : Defines the entry point for the console application.
- //
- #include "stdafx.h"
- #include<iostream>
- using namespace std;
- int main()
- {
- cout<<32*93/100<<endl; //It will print 29. (correct but not accurate)
- cout<<32/100*93<<endl; //It will print 0. (wrong)
- cout<<32.0*93/100<<endl; // correct with accuracy
- cout<<32/100.0*93; // correct with accuracy
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement