Get the Value From The User and Print the Corresponding Hexa-Decimal Value in C - Learn Engineering

All the news and updates relevant to Engineering. You can also Write a post here

Breaking

Saturday, June 13, 2020

Get the Value From The User and Print the Corresponding Hexa-Decimal Value in C

Question

Get the Value From The User and Print the Corresponding Hexa-Decimal

Sample TestCase Expected Output

1. 10064



Answer

    #include<stdio.h>
    int main()
    {
        long long int num1;
        scanf("%lld", &num1);
        printf("%x",num1);
        return 0;
    }

Follow Us For More...

1 comment: