Computer Science, asked by prakhar8881, 5 months ago

Question 8. Write a program in Java to ask any numbers from user and print the Hexa-Decimal of given

number​

Answers

Answered by Anonymous
0

Answer:

Ishwar Das VarshneyPresence of a single God was the central point of his teachings. ... Kabir told his followers to consider the teacher as Govind (God). This guru alone can lead the disciple to the light of knowledge emanating from God. And the only path to attain God is the path of Bhakti or devotion.

Answered by amansaleh655
0

Explanation:

import java.util.Scanner;

class DecimalToHexExample

{

public static void main(String args[])

{

Scanner input = new Scanner( System.in );

System.out.print("Enter a decimal number : ");

int num =input.nextInt();

// calling method toHexString()

String str = Integer.toHexString(num);

System.out.println("Method 1: Decimal to hexadecimal: "+str);

}

}

hope it helps you

Similar questions