if ENTERED FIVE DIGITS DESIGN A PROGRAM THAT WILL FIND
CORRESPONDING VALUE FROM ASCII TABLE
Answer Posted / vignesh1988i
since it is given as digits, lets assume that we take only
integers.
#include<stdio.h>
#include<conio.h>
void main()
{
int n,a[20],count=0;
printf("enter th number :");
scanf("%d",&n);
for(int i=0;n>0;i++)
{
a[i]=n%10;
n=n/10;
count++;
}
for(i=0;i<count;i++)
{
printf("%c",a[i]);
}
getch();
}
this will be the logic , i think so.....!
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
Write a program to swap two numbers without using third variable in c?
How can I find out how much free space is available on disk?
if p is a string contained in a string?
What does sizeof int return?
What is the difference between typedef and #define?
What is function and its example?
What are the features of c languages?
simple program of graphics and their output display
Give differences between - new and malloc() , delete and free() ?
Input is "rama loves rajesh and rajesh Loves rama also and rajesh wear gloves and bloves" To print output is count the numbers of times repeted the word love without case sensitive.
What is echo in c programming?
What is #error and use of it?
What will be your course of action for a push operation?
What is const volatile variable in c?
what are bit fields in c?