pl help me to writea program that takes a decimal number and coverts it to both octal and hexadecimal equivalents with two function detooct and dectohex. The out put willbe as under
enter a number 456
Num 456,octal710(710)hex1c8(1c8)

Recommended Answers

All 6 Replies

Member Avatar for iamthwee

pl help me to writea program that takes a decimal number and coverts it to both octal and hexadecimal equivalents with two function detooct and dectohex. The out put willbe as under
enter a number 456
Num 456,octal710(710)hex1c8(1c8)

[moderator edit]
That's pushing the bounds of good taste, iamthwee.

@ k.moorthy: We don't give free solutions. You need to show some proof of effort.
[/moderator edit]

pl help me to writea program that takes a decimal number and coverts it to both octal and hexadecimal equivalents with two function detooct and dectohex. The out put willbe as under
enter a number 456
Num 456,octal710(710)hex1c8(1c8)

thanks

pls help me to write a program that will input a word or a sentence and display that youve inputted in a reverse form. if the word you entered is the same as the reverse one, "Palindrome" will be displayed. Otherwise,"NOt Palindrome"

output:
enter string:maxam
maxam
palindrome

thanks

pls help me to write a program that will input a word or a sentence and display that youve inputted in a reverse form. if the word you entered is the same as the reverse one, "Palindrome" will be displayed. Otherwise,"NOt Palindrome"

2 Ways to do this - Either create a reversed copy of the string, and do a comparison, else use two iterators or placemarkers to compare characters of the string from the outside-in.

Hello K.Moorthy,
ur question is good. :?:
Take this code : :idea:

#include<stdio.h>
#include<conio.h>
void main()
{
int n;
clrscr();
printf("\n Enter an integer =");
scanf("%d",&n);
printf("\n octal eq.=%o, Hexa eq.=%x",n,n);
getch();
}
:rolleyes:
While i try for a logical one... :) :lol: :cheesy:

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.