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 |
How to upgrade LOOP environment, I just mean, how can i make loop statement editable ? I just try some program using loop statement and checking it in multiple compilers. Every compiler showing different output, what's the wrong ? is it a compiler based problem, or loop based problem, tell me why ? and what will be the debugging process, for this kind of problem ?
what is exceptions?
What are the different types of errors in C and when they occur?
A sample program using data structure? what is file handling?
How to convert hexadecimal to binary using c language..
1 Answers Bajaj, GAIL, Satyam, Zenqa,
To generate the series 1+3+5+7+... using C program
Write down the difference between c. Loop and goto statement d. (!0) and (!1) e. (1= =! 1) and (1!=1) f. NULL and !NULL
Write a c-programe that input one number of four digits and find digits sum?
What is the code for following o/p * * * * * * * * * * * * * * * *
How to develop a program using C language to convert 8-bit binary values to decimals. TQ
Given that two int variables, total and amount, have been declared, write a loop that reads integers into amount and adds all the non-negative values into total. The loop terminates when a value less than 0 is read into amount. Don't forget to initialize total to 0. Instructor's notes: This problem requires either a while or a do-while loop.
write a profram for selection sort whats the error in it?