program to accept a character in lowercase and convert it into uppercase

 /* 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

c program, Advance coding, c++ program, simple program, Advance language

online quiz Application project page MCA final year project

  Here we making a quiz application ppt presentation for college project so that our project idea will like to our professor and teacher  fi...