Thursday 4 October 2012

Count The Repeated Letter

#include <stdio.h>

#include <conio.h>

#include <string.h>

 

int main()

{

        char stng[20],rpt;

        int count, i;

        clrscr();

       

        printf("*****Program to Count The Repeated Letter*****");

        printf("\n\nEnter word : ");

        gets(stng);

       

        printf("Enter character : ");

        scanf("%c",&rpt);

       

        count = 0;

        i = 0;

        while(i != 19)

        {

                if(stng[i]==rpt)

                        count++;

                i++;

        }

       

        printf("\n%c is %d times repead.",rpt,count);

       

        getch();

        return 0;

}

2 comments:

  1. hey qualitybird.blogspot.com admin found your blog via search engine but it was hard to find and I see you could have more visitors because there are not so many comments yet. I have found site which offer to dramatically increase traffic to your website http://cheap-mass-backlinks.com they claim they managed to get close to 4000 visitors/day using their services you could also get lot more targeted traffic from search engines as you have now. I used their services and got significantly more visitors to my blog. Hope this helps :) They offer best services to increase website traffic Take care. Richard

    ReplyDelete
  2. My spouse and I stumbled over here by a different web page and thought I may as
    well check things out. I like what I see so now i am following you.
    Look forward to checking out your web page repeatedly.


    Here is my page :: minecraft games

    ReplyDelete