How to print a hexadecimal value in high box?

Asked

Viewed 112 times

4

I made a program in C++ that reads a number and prints it in hexadecimal, follows the code below.

#include <iostream>
using namespace std;

int main(void) {

    int n;  
    cin>>n; 
    cout<<hex<<n<<endl; 

    return 0;
}

Only he prints everything in minuscule and I’d like you to print it in maísculo, how can I do that?

1 answer

8


Browser other questions tagged

You are not signed in. Login or sign up in order to post.