Month: April 2017
Last Digit: #include<stdio.h> int main(){ int num,lastdigit; printf(“enter any number:”); scanf(“%d”,&num); lastdigit=num%10; printf(“lastdigit = %d”,lastdigit); return 0;…
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…
Recent Comments