answersLogoWhite

0


Best Answer

#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

12y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How do you convert capital to lower string in c using asc code?
Write your answer...
Submit
Still have questions?
magnify glass
imp
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


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


How do you get odd ascii letters from a given string using string copy?

there is no such method using string copy


Which of the following function convert an object to a string in python?

By using "str()". Example: number = 2 yourNumber = print("Your number is %s!") % (str(number))


Piglatin string in c without using pointer?

Sure, you can write a function in C to convert a string to Pig Latin without using pointers by passing the string as a parameter and manipulating it directly within the function. You can split the string into words, check if a word starts with a vowel or consonant, and then apply the appropriate transformation following the rules of Pig Latin. Remember to allocate enough memory for the modified string to prevent buffer overflow.


How can you pick out the last character from a c plus plus string to be used in an if-statement- for example checking if the last letter of a word is y?

#include #include #include using std::cout;using std::endl;using std::cin;using std::string;using std::tolower;using std::getline;int main(){string myString = "my string is here";cout characterToSearchFor;cout