Category: ACM Technique

11
May
2017

String Secret Revealed in C

String Input Take Without any gets function just scanf is enough for taking any input withlout gets function #include<stdio.h>…

11
May
2017

Modulo in Details

We can easuly get a range of output value after mod: Code: for 100 here print from…

09
May
2017

Learn Modulo in Easy Way

One thing was confusion for me but after watching this tut it is clear to me now….

20
Apr
2017

Logic to Find First and Last Digit

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;…

19
Apr
2017

String Frequency Count

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);…

19
Apr
2017

String Palindrome Problem

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”);…