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
What does dm mean sexually?
Why are some ANSI/ISO Standard library routines showing up as undefined, even though I've got an ANSI compiler?
What are the 3 types of structures?
What is pragma c?
What is sizeof int in c?
What is the difference between typedef and #define?
Why is not a pointer null after calling free? How unsafe is it to use (assign, compare) a pointer value after it is been freed?
Why clrscr is used in c?
Is file a keyword in c?
What does p mean in physics?
How do I use void main?
hi, which software companys will take,if d candidate's % is jst 55%?
Why do we use namespace feature?
What is indirection? How many levels of pointers can you have?
Explain how can a program be made to print the line number where an error occurs?