Category: C Refresh
code: simple code: #include<stdio.h> int main() { char str[300],ch; int i,frequency=0; printf(“enter string:”); gets(str); printf(“enter character:”); scanf(“%c”,&ch);…
My Own Logic: #include<stdio.h> int main() { char str[200]; int i,j; gets(str); for(i=0;str[i]!=’\0′;i++); for(j=0;j<i;j++) { if(str[0]==str[i-1]){ printf(“Palindrome\n”);…
Problem from 101cproblems.com: Write a program which will take a sentence as input and tell us how…
Problem 70: Case Fix You are given a string mixed with uppercase and lowercase letters . Your…
Problem: Write a program which takes a string of alphabet as input and replace all the characters with…
Problem: Take three different string as input from the user(“We”, “ Love” and “ Bangladesh”). Now concate these…
Recent Comments