text: /*
  Description:  Convert string to upper case
  Author: Tushar Gautam
  Date: 9th Jan 2022
  */
  
  #include <iostream>
  #include <cctype>
  
  using namespace std;
  
  int main() {
      char str[20];
      cout << "Enter the string: ";
      fgets(str, 20, stdin);
  
      // Converting to uppercase
      for (int i = 0; str[i]; i++)
          str[i] = toupper(str[i]);
  
      cout << str;
  
      return 0;
  }
  