Category: Programming
Regex Tutorial: Best Site To Learn Tutorial https://regexone.com/lesson/optional_characters (Will start from this page other pages completed before)…
code: //program to cound frequency of digits in a number #include<stdio.h> #define BASE 10 int main() {…
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…
Recent Comments