Simplest conversion from decimal to hexadecimal

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



OUTPUT:

15
f

1055
41f


Comments

Popular posts from this blog

C program to print the following Pattern

c++ program to print string along the diagonals of the matrix.

Kollywood Game