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 |
Why is structure important for a child?
What is Function Pointer? Explain with example?
What is the difference between fork() and vfork()?
What is 2c dna?
Write a C program that computes the value ex by using the formula ex =1+x/1!+x2/2!+x3+3!+………….
What are examples of structures?
Write a program to print ASCII code for a given digit.
Explain what is the benefit of using const for declaring constants?
What is the maximum no. of arguments that can be given in a command line in C.?
Explain what are the standard predefined macros?
what is default constructor?
Why do we need volatile in c?