What do you want to save?
Add Code snippet
New code examples
-
Other 2021-11-20 15:26:14
Write a C program to check whether the string is a palindrome without using string functions.
#include <stdio.h>#include <string.h> int main(){ char text[100]; int begin, middle, end, length = 0; gets(text); while ( text[length] != '\0' ) length++; end = length - 1; middle = length/2; for( begin = 0 ; begin < ... Add solution -
Java 2021-10-01 15:08:09
String palindrome in java using stringbuffer
// String palindrome in java using stringbuffer public class PalindromeUsingStringBuffer { public static void main(String[] args) { String strInput = "nayan"; StringBuffer sb = new StringBuffer(strInput); sb.reverse(); ... Add solution
Best helpers
+5
+5
+5
+5
+5
+5
+5
+5