answersLogoWhite

0


Best Answer

If you want the next letter after a given letter, add one. For the previous letter, subtract one. Depending on the programming language, some additional details may be required - such as converting from text to number before adding, and converting back after adding. You'll also have to decide what to do when you get past the last letter - past the "Z" when going up, or past the "A" when going down.

User Avatar

Wiki User

10y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Program to find next and previous alphabet of input alphabet?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about General History
Related questions

An assembly language program that will take three decimal input and display minimum of them?

program that take three decimal number as input and find the largest among them in assembly language


What is the code of C language program- input today date find tomorrow date?

#include


Write a program to print whether the letter is vowel or not in BASIC?

vowels$ = "aeiou" CLS PRINT "PROGRAM: Find if letter is a vowel or not" PRINT INPUT "Type a single alphabet letter: (a-z)/and, then, press Enter key"; aLetter$ PRINT PRINT "Letter "; aLetter$; IF INSTR(vowels$, LCASE$(aLetter$)) THEN PRINT " is a vowel." ELSE PRINT " is NOT a vowel." END


Write a C program called MonthDays to find the number of days in a given month Test your code with different input values to demonstrate that your function is robust?

Write a C program called MonthDays to find the number of days in a given month Test your code with different input values to demonstrate that your function is robust?


How do you Write A program in c language for checking a diagonal matrix?

Write a program in c++ that take input in a integer matrix of size 4*4 and find out if the entered matrix is diagonal or not.


How do you Write a java program to find the average of given numbers?

import java.util.Scanner; public class Numbers { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int max = -100; int min = 100; int sum = 0; System.out.println("Enter ten integers"); for(int i = 0; i < 10; i++) { int input = scan.nextInt(); if(input > max)//test if the number entered is larger than any previous number max = input; if(input < min)//test if the number entered is smaller than any previous number min = input; sum += input;//add the input to the sum } System.out.println("The maximum number entered is: " + max + "\nThe minimum number entered is: " + min + "\nThe average of the numbers is: " + (sum / 10));//prints out the results } }


Where you would find B in the alphabet?

It's the second letter of the alphabet but the month letter in "the alphabet"


A program to find that the input number is prime or not?

Use Wolfram|Alpha... go to the related link below, Wolfram|Alpha, and type in (is __ (number) prime) and then the program will compute that and tell you if it is prime or composite.


What is the program to find sum of n natural numbers in c plus plus?

Initialise an unsigned integer to zero. As each number is input, increment the running total accordingly. When all numbers are input, display the total.


In what alphabet would you find the letter resh?

The letter "resh" can be found in the Hebrew alphabet.


Can you get a bachelor's degree afteryou become a diploma nurse?

Yes, and you may be able to find a program that will take into account your previous coursework and experience.


Write a c program to find positive and negative count?

# include # include void main(){int a[20], i, n ;clrscr() ;printf("Enter the limit : ") ;scanf("%d", &n) ;printf("Enter the elements") ;for(i = 0 ; i < =n ; i++)scanf("%d", &a[i]) ;printf("The positive elements are") ;printf("the negative elements are);for(i = 0 ; i < n ; i++){if(a[i] > 0)printf("%d", a[i]) ;if(a[i]