answersLogoWhite

0

What else can I help you with?

Related Questions

What is the use of Reverse String in C program?

The use of the reverse string in C program is used to reverse the letters in the string. An example would be reverse me would be reversed to em esrever.


Write a program to implement the various operations on string such as length of string concatenation reverse of a string copy of a string to another in VB?

what is string


Write the program in Linux to find the reverse of any string?

i am sam


How to write a program in python to print the reverse of a number?

In python, type the following into a document. NOTE: Sentences following a # symbol are comments, and are not necessary for the program to run. #!/usr/bin/python #This program takes a input from a user and reverses it. number = input("Type a number: ") #This takes input from a user. a = len(number) #This finds the length of the number reverse = "" #This sets the variable reverse to an empty string. for i in number: a = a-1 #The places in a string start from 0. The last value will be the length minus 1.reverse = reverse + number[a] #Makes the number's last digit the new string's first. print("The reverse of", number, "is", reverse + ".") #prints the resulting string. This program will take any sequence of characters and reverse them. The final value is a string, but if an integer is needed, one needs only to add the line reverse = int(reverse) above the print statement. However, this will stop the program from being able to reverse strings, as it is not possible to convert a string to an integer if it is not a number.


How does perl interpretor know that string has ended?

A Perl string begins and ends with a delimiter. This can either be a single-quote ('), double-quote (") or user defined quote (q): $single = 'This string is single-quoted'; $double = "This string is double-quoted"; $user = q^This string is delimited by the caret symbol^


String reverse program with single string and without using library functions in java?

You can create a separate string initially empty. Then using a loop, start at the end of the string and add it to the end of the other string. At the end of the loop, the other string would contain the reverse.


What has the author Les Bate written?

Les Bate has written: 'Perl' -- subject(s): Perl (Computer program language), Web site development 'Perl Web development' -- subject(s): Perl (Computer program language), Web site development


What is java program on computers?

#!/usr/bin/perl print 'java program';


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<string> using std::string; string reverse (const string& s) { string str {}; for (auto c : s) str.insert (str.begin(), c); return str; } int main () { std::cout << "Enter a number: "; string s {}; std::cin >> s; std::cout << "The number in reverse is: " << reverse (s); }


How reliable is Perl?

This question is very nearly meaningless. Perl is a programming language; the reliability of any given Perl program depends on the talent and insight of the programmer.


How does one use the perl split function?

The Perl split function is used to split a string into smaller section. One can find a guide on how to use a Perl split function on various websites including Perlmeme.


How do you create a string and reverse a string in vb?

gov