You are viewing a single comment's thread. Return to all comments →
IT WORKS FOR ALL i realized: if u set a,b and c are float, it will be wrong!
#include <bits/stdc++.h> using namespace std; int main() { int t; cin >> t; while(t--) { double a, b, c; cin >> a >> b >> c; cout << nouppercase << showbase << hex << (long long)a << endl; cout << setw(15) << setfill('_') << showpos << fixed << setprecision(2) << b << endl; cout << noshowpos << uppercase << scientific << setprecision(9) << c << endl; } return 0; }
Seems like cookies are disabled on this browser, please enable them to open this website
Print Pretty
You are viewing a single comment's thread. Return to all comments →
IT WORKS FOR ALL i realized: if u set a,b and c are float, it will be wrong!