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 |
I can not get my C++ program to work right. It is supposed to tell if a word is a palindrome or not, but it only tells thet the word is not a palindrome. And I can't fix it.
Using string functions write a program that will accept the name of the capital as input value and will display the corresponding country. ------------------------ Capitals Countries ------------------------ Capitals Countries Ottawa Canada Moscow Russia Rome Italy I can't not get it to run properly
Answering Yes or No in C++...using only stdio.h and conio.h..........help me please...? here's must be the output of the program: Screen A Exam No. items Score 1 20 20 2 35 35 Another Entry? [Y] or [N] : Screen B: Record No. Student's Name: 1 Fernando Torres 2 Chuck Norris Note: if you press Y, the program must repeat the procedure in screen A, then if N, the program must proceed to the screen B....Please Help me out............
which typw of errors ? & how to solve it ?
What is the code for following o/p * * * * * * * * * * * * * * * *
Display this kind of output on screen. 1 0 1 1 0 1 3. Display this kind of output on screen. 1 1 0 1 0 1 4. Display this kind of output on screen. 1 1 0 1 0 1 5.Display this kind of output on screen. 1 2 3 4 5 6 7 8 9 10
how tally is useful?
I am using Qt 5.6 during compilation it stops and gives error about Qmake The process "C:QtQt5.6.35.6.3msvc2015_64inqmake.exe" crashed. Error while building/deploying project untitled1 (kit: Desktop Qt 5.6.3 MSVC2015 64bit) When executing step "qmake"
errors are known as?
3 Answers EX, State Bank Of India SBI,
write a profram for selection sort whats the error in it?
void main() { for(int i=0;i<5;i++); printf("%d",i); } What is the output?..
32 Answers College School Exams Tests, CTS, HCL, iGate, SmartData,
Write a C program to enter 10 integer numbers through one variable and count how many of them are even using while loop ?