answersLogoWhite

0

There are two functions in ctype.h: toupper() and tolower(). First one to make character into upper case and the second one for making lower case.

Here is a small program converting inputted character into lower case:

#include

#include

int main() {

char ch;

printf("Enter the char: ");

scanf("%c", &ch);

printf("Char in lowercase: %c\n", tolower(ch));

return 0;

}

Testing:

Enter the char: G

Char in lowercase: g

Enter the char: S

Char in lowercase: s

User Avatar

Wiki User

16y ago

What else can I help you with?

Related Questions

Create a program which accepts a number not less than 10The program prints the reverse of the number?

ten


What commands are used to prints text in java?

System.out.println("text"); or System.out.print("text"); Please note that Java is case sensitive, meaning you must match uppercase and lowercase exactly.


Write a program that read phrase and print the number of lower-case letter in it using function of counting?

write a program that reads a phrase and prints the number of lowercase latters in it using a function for counting? in C program


C program which accepts in order and preorder traversal outputs of a binary tree as input and prints the corresponding binary tree?

any body can help on this ?


How did menu's develop?

A restaurant prints it out using a special program


How do you write a c program that prints a box an oval an arrow and a diamond?

You first learn how to program in C.


Dry run table in flow-chart?

/* my second program in C++ with more comments */ #include <iostream> using namespace std; int main () { cout << "Hello World! "; // prints Hello World! cout << "I'm a C++ program"; // prints I'm a C++ program return 0; }


Program in c to develop an algorithm that prints the n value of algorithm?

reymond rillera reymond rillera


How do you identify the character in a string is uppercase?

In order to find whether a character in a string is in uppercase or not, you need to use the ascii\unicode values of the character. You may want to use the following code-- String str="Your Sample String Here"; //(say you have this string) int l=str.length(); for(int i=0;i<l;i++) { char ch=str.charAt(i); if(ch>=65&&ch<=90) //Since the values of block letters in ASCII are from 65 to 90 System.out.println(ch); } //This program basically prints out the block letters, but you can modify it as you like, by changing the statement after 'if' as you want


Why MsgBox with string 000 prints e but 00 or 0000 are printed correctly Thank you ozcansyahoocom?

Your program is wrong.


Do a program with turbo pascal to print the alphabet backward?

Turbo Pascal is a style of computer programming. This type of writing language can be used to create a program that prints the alphabet backwards.


Write a program that input a positive integer and prints a triangle using for loop?

write a program that reads in the size of the side of square and then pints a hollow square of that size out of asterisks and blanks?