Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

What does dm mean sexually?

1318


Why are some ANSI/ISO Standard library routines showing up as undefined, even though I've got an ANSI compiler?

1134


What are the 3 types of structures?

1034


What is pragma c?

1124


What is sizeof int in c?

1063


What is the difference between typedef and #define?

1065


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?

1140


Why clrscr is used in c?

1017


Is file a keyword in c?

935


What does p mean in physics?

1046


How do I use void main?

1091


hi, which software companys will take,if d candidate's % is jst 55%?

2093


Why do we use namespace feature?

1059


What is indirection? How many levels of pointers can you have?

1145


Explain how can a program be made to print the line number where an error occurs?

1220