if ENTERED FIVE DIGITS DESIGN A PROGRAM THAT WILL FIND
CORRESPONDING VALUE FROM ASCII TABLE
Answer / 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 |
What is the newline escape sequence?
Why c is a mother language?
What is a floating point in c?
is it possible to create your own header files?
define c
define function
What is the real difference between arrays and pointers?
27 Answers Hexaware, Logic Pro, TCS,
What is switch in c?
Is c compiled or interpreted?
How can I dynamically allocate arrays?
How do I use void main?
a=(1,2,3); b=1,2,3; c=1,(2,3); d=(1,2),3; what's the value of 'a','b','c','d'