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 does ‘Bus Error’ mean?
1)what are limitations for recursive function? 2)write a program to read a text file and count the number of characters in the text file
What is a null string in c?
what is the difference between getch() and getchar()?
What is memory leak 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 output for the code : main() { int i,j; printf("%d %d ",scanf("%d%d",&i,&j)); }
Write a program that his output 1 12 123
Program to find the sum of digits of a given number until the sum becomes a single digit. (e.g. 12345=>1+2+3+4+5=15=>1+5=6)
Design a program using an array that lists even numbers and odd numbers separately from the 12 numbers supplied by a user.
One of the Institutes contains 5 student groups. Every group contains 4 students. Institute wants to store student group’s details in array. Group should contain group member’s details (name and registration number and age), project name, and mark of the group.
What is void main ()?