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 difference between char * const and const char *?
Explain what is the most efficient way to store flag values?
What is %d called in c?
What is the difference between procedural and functional programming?
how many types of operators are include in c language a) 4 b) 6 c) 8 d) 12
Where static variables are stored in c?
int main() { int i=1; switch(i) { case '1': printf("hello"); break; case 1: printf("Hi"); break; case 49: printf("Good Morning"); break; } return 0; }
What is the size of a union variable?
What is c system32 taskhostw exe?
What is the difference between ‘g’ and “g” in C?
how to find the largest element of array without using relational operater?
What are the advantages and disadvantages of c language?