1// Pretty stright forward
2// takes in input
3// outputs it in hex
4
5#include <iostream>
6using namespace std;
7
8int main(){
9 float i;
10 cout << "What is the number?: ";
11 cin >> i;
12
13 int* q = (int*)&i;
14 cout << hex << *q << endl;
15
16 return 0;
17}