Write a C Programm..
we press 'a' , it shows the albhabetical number is 1, if we
press 'g' it shows the answer 7.. any can help me
Answer Posted / nitin garg
#include <stdio.h>
#include <conio.h>
int main()
{
char a;
scanf("%c",&a);
if(a>='A' && a<='Z')
a=a+32;
printf("%d",a-96);
getch();
}
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
How do you use a 'Local Block'?
Is c dynamically typed?
program to find error in linklist.(i.e find whether any node point wrongly to previous nodes instead of next node)
Ow can I insert or delete a line (or record) in the middle of a file?
What is huge pointer in c?
How do you construct an increment statement or decrement statement in C?
In which layer of the network datastructure format change is done
What is the most efficient way to count the number of bits which are set in an integer?
When should a type cast be used?
How can I generate floating-point random numbers?
Write a program to swap two numbers without using third variable?
Why pointers are used?
What is the difference between the expression “++a” and “a++”?
application attempts to perform an operation?
if (i = 0)printf ("True"); elseprintf("False"); Under what conditions will the above print out the string "True" a) Never b) Always c) When the value of i is 0 d) all of the above