answersLogoWhite

0


Best Answer

[ string toupper $str ] or [ string tolower $str ]

User Avatar

Wiki User

14y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Write a program convert a string from uppercase to lower case and vice-versa without using string tolower and string toupper commands in TCL?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Java program to convert lowercase to uppercase?

You can use the toUpperCase() method on a String to convert any String to all uppercase.


Which of the following commands would run program in the background?

program >bg


How do you write a C program to input a string of lowercase alphabets and convert it to uppercase using a loop?

void to_uppercase (char* str) { if (str == 0) return; while (*str != '\0') { if (*str>='a' && *str<='z') *str-=32; ++str; } }


What is a set of instructions or handled or commands for a computer called?

A set of instructions or commands is called a program.


Write a program to generate uppercase using cSharp?

string s = "asdfqwer"; s = s.ToUpper(System.Globalization.CultureInfo.CurrentCulture);


Commands in an office program windows are organized into?

tabs


Is any intructions that tells a computer what to do?

They are commands. If you put a list of commands together to carry out a more detailed task, the list of commands are referred to as a program.


Write a program using a loop to output all the letters of the alphabet in uppercase?

Here's the code for your program: # Loop through the uppercase alphabet letters for letter in range(ord('A'), ord('Z') + 1): print(chr(letter)) BTW you can use this code in Python and try it out for yourself.


What is a list of program commands listed by topic?

A command menu.


What is a set of commands that automates complex or repetitive actions?

It is a program.


Write program using c programig to convert uppercase to lower case?

#include <stdio.h> int main() { int n; char ch; scanf("%d", &n); { scanf("%c", &ch); ch-=32; } printf("%c", ch); return 0; }


Is uppercase ever used in a C program?

Yes. By convention, macros use all uppercase while all user-defined names should have a leading capital to differentiate them from standard library names which are all lowercase.