answersLogoWhite

0

#include<stdio.h>

#include<conio.h>

#include<string.h>

void main()

{

char str[99];

int i,len=0;

clrscr();

printf("Enter the string \n");

while ( i!=\n)

scanf("%s",str[i]);

len=strlen(str[i]);

//Printing the accepted value.

for(i=1;1<len;++i)

{

printf("%s",str[i]);

}

//Converting the case.

for(i=0;i<len;++i)

{

if(str[i]>='A' && str[i]<='Z')

{

str[i]+=35;

}

else

{

str[i]-=35;

}

}

//Printing the string converted string.

for(i=0;i<len;++i)

{

printf("%s",str[i]);

}

getch();

}

User Avatar

Wiki User

13y ago

What else can I help you with?

Related Questions

How to capitalize the first letter of a string without using built in C functions?

jst subtract 32 from first character of string to convert it into capital


Write a program convert a string from uppercase to lower case and vice-versa without using string tolower and string toupper commands in TCL?

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


How do you convert string to int in Java?

One can convert a string variable to an int variable in Java using the parse integer command. The syntax is int foo = Integer.parseInt("1234"). This line will convert the string in the parenthesis into an integer.


Write a Program to convert decimal number into hexadecimal no without using function and string?

This is not a question.


Is it possible to convert a string into integer without using any function in c?

Yes


What is the structure of the ots keyword in the programming language you are using?

In the programming language I am using, the structure of the &quot;ots&quot; keyword is typically used for object-oriented programming and stands for &quot;object to string.&quot; It is used to convert an object into a string representation.


How do you enter integer in python?

In Python, you can enter an integer using the input() function, which captures user input as a string. To convert this string to an integer, you can use the int() function. For example: user_input = input(&quot;Enter an integer: &quot;) integer_value = int(user_input) This will convert the input string to an integer, assuming the user enters a valid integer.


How do you convert integer array to string array in c?

To convert an integer array to a string array in C, you can use the sprintf function within a loop to format each integer as a string. First, create a string array with enough space to hold the string representations. Then, iterate through the integer array, using sprintf to convert each integer to a string and store it in the corresponding index of the string array. Here's a simple example: #include &lt;stdio.h&gt; void intArrayToStringArray(int *intArray, char stringArray[][12], int size) { for (int i = 0; i &lt; size; i++) { sprintf(stringArray[i], &quot;%d&quot;, intArray[i]); } }


Reversing characters in a string in visual basic?

To reverse characters in a string in Visual Basic, you can use the StrReverse function, which takes a string as an argument and returns the reversed version. For example, Dim reversedString As String = StrReverse(&quot;Hello&quot;) would result in reversedString containing &quot;olleH&quot;. Alternatively, you can convert the string to a character array, reverse it using Array.Reverse, and then convert it back to a string. Here's a simple example: Dim inputString As String = &quot;Hello&quot; Dim charArray() As Char = inputString.ToCharArray() Array.Reverse(charArray) Dim reversedString As String = New String(charArray)


How do you convert a number that consist of alphabet and number in reverse order?

To reverse a number, first convert the number to a string, then reverse the string. Given your number consists of alphanumeric characters, the number must already be a string so simply reverse the string: #include&lt;string&gt; using std::string; string reverse (const string&amp; s) { string str {}; for (auto c : s) str.insert (str.begin(), c); return str; } int main () { std::cout &lt;&lt; "Enter a number: "; string s {}; std::cin &gt;&gt; s; std::cout &lt;&lt; "The number in reverse is: " &lt;&lt; reverse (s); }


How do you convert content of file from lower to upper and upper to lower by using tr command in Linux?

ls -l | tr 'a-z' 'A-Z'


What stands for recess?

a recessive allele is shown using a lower case letter a dominant allele is shown using a capital letter