Drop Down MenusCSS Drop Down MenuPure CSS Dropdown Menu

Convert a String into upper-case to lower-case & vice versa .....


Program to print the uppercase string to lower case string &vice versa.
Simply use of " string.h " header file for the conversion of string

(note: user can only apply single word or character)




Source Code:-

#include<iostream.h>
#include<string.h>
#include<conio.h>
void main()
{ clrscr();
  char str1[30],temp[30];
  cout<<"Convert Lower to Upper case & Vice versa by-Tarun Rawat\n";
  cout << "Enter the string: ";
  cin >> str1;
  strcpy(temp,str1);
  cout<<"Upper Case String "<<strupr(temp) ;
  cout<<"\nLower Case String "<<strlwr(temp) ;
getch();
}

No comments:

Post a Comment

Blogger Widgets

Find Us On Google, Just type - way2cplusplus -

If you have any questions on implementing or understanding this C++ Program , shoot me a comment and I'll be glad to help! :) :)