/* write a program to accept a character in lowercase and convert it into uppercase using library function*/
#include<stdio.h>
#include<conio.h>
void main()
{ char ch;
clrscr();
printf(" \n Enter a character in lowercase :--");
scanf("%c",&ch);
ch=toupper(ch);
printf(" \n uppercase character = %c ",ch);
getch();
}
/* output:--
Enter a character in lowercase :-- b
uppercase character = B
*/
Algorithm of program
step 1: start
step 2: Declare ch
step 3: Accept character in lowercase
step 4: IS ch=toupper(ch)
step 5:Display uppercase character
step 6:stop
💬👇💗😊
No comments:
Post a Comment
This Blog helps you to learn basics to high level programming coding and practicals.
conceptual understanding