how to convert decimal to hexadecimal without using arrays
just loops
Answers were Sorted based on User's Feedback
Answer / dhatchina moorthy
#include"stdio.h"
main()
{
int a;
printf("Enter the decimal");
scanf("%d",&a);
printf("the hexadecimalfor %d is %x",a,a);
return 0;
}
Is This Answer Correct ? | 13 Yes | 29 No |
Answer / kiran123456789
#include<iostream.h>
#include<conio.h>
void main()
{
int a;
cout<<"Entrer a number";
cin>>a;
cout>>(hex)a;
getch();
}
Is This Answer Correct ? | 9 Yes | 29 No |
Write a C program to enter 10 integer numbers through one variable and count how many of them are even using while loop ?
what is run time error?
Write a c-programe that input one number of four digits and find digits sum?
Why are memory errors hard to debug?
who was the present cheif governor of reserve bank of india
6 Answers State Bank Of India SBI,
Assume that the int variables i and j have been declared, and that n has been declared and initialized. Write code that causes a "triangle" of asterisks of size n to be output to the screen. Specifically, n lines should be printed out, the first consisting of a single asterisk, the second consisting of two asterisks, the third consistings of three, etc. The last line should consist of n asterisks. Thus, for example, if n has value 3, the output of your code should be * ** *** You should not output any space characters. Hint: Use a for loop nested inside another for loop.
what is meant for variable not found?
what is meant by linking error? how can i solve it? if there is a linking error " unable to open file 'cos.obj'? then what should i do?
How to reverse a linked list without using array & -1? Thank you.
What are the different types of errors in C and when they occur?
wap for bubble sort
I'm having trouble with coming up with the correct code. Do I need to put a loop? Please let me know if I'm on the right track and what areas I need to correct. I still don't have a good grasp on this programming stuff. Thanks =) The assignment was to write a program using string functions that accepts a coded value of an item and displays its equivalent tag price. The base of the keys: 0 1 2 3 4 5 6 7 8 9 X C O M P U T E R S Sample I/O Dialogue: Enter coded value: TR.XX Tag Price : 68.00