Yes.
Not possible through html. Use php strrev function. For eg:
write the javascript code to display the reverse no. of given no. (e.g. 247 reverse of 742)
what is string
wefwfe
i dont no string for servlate
i am sam
Hay buddy this is homework. U have to solve it by urself.
To display a number in assembly language, you typically convert the number to a string format. This involves dividing the number by 10 repeatedly to extract each digit, storing the digits in reverse order, and then using a system call (like write in Linux) to output the string to the console. The specific implementation can vary depending on the assembly language syntax and the operating system being used. Always ensure to handle any necessary conversions and character encoding for proper display.
This is not a question.
To display numbers on an LCD using embedded C, you typically use a microcontroller with an appropriate LCD library. First, initialize the LCD by setting up the data and control pins. Convert the number to a string format using sprintf() or similar functions, then use the LCD's print or write function to send the string to the display. Make sure to properly manage the cursor position before displaying the number.
//C program to accept a string from user and //display its ascii value and //then display sum of all ascii value of strings #include<stdio.h> #include <string.h> int main() { char String[100]; int Sum,Index; Sum=0; //Sum is initially zero printf("Enter the string:\n"); gets(String); //Accept String from User for(Index=0;Index<strlen(String);Index++) { Sum+=(String[Index]); //Adds (the ASCII values of) the String characters. } printf("The sum is %d\n",Sum); //Printing it as %d gives the equivalent ASCII value. return 0; }
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.