Learn how to Make Money Online | Free Tech Magazines
Go4Expert
Go4Expert RSS Feed

Go Back   Programming and SEO Forum >  Go4Expert > Articles / Source Code > Programming > C-C++

View Poll Results: DID U LIKE IT ?
YA,VERY VERY GOOD 4 57.14%
SEEMS GOOD 2 28.57%
NOT AT ALL. 1 14.29%
VERY BAD. 0 0%
Voters: 7. You may not vote on this poll

Discuss / Comment Copy HTML to Clipboard  Copy BBCode to Clipboard  Add to del.icio.us  Add to Google  Digg it  Add to Yahoo !  Add to Windows Live  Add to Facebook  Add to StumbleUpon 
 
Bookmarks Article Tools Search this Article Display Modes

Friendship Calculator With Poll

By TEJUS TEJUS is offline

On 12th August, 2006
Friendship Calculator With Poll

ADVERTISEMENT
Show Printable Version Email this Page Subscription Add to Favorites Copy Friendship Calculator With Poll link

Author

TEJUS ( Go4Expert Member )

Yet to provide details about himself


All articles By TEJUS

Recent Articles

Similar Articles

  • Oops, No Similar Articles found for Friendship Calculator With Poll but you can check out the Recent Articles.
  • Also see more articles by TEJUS.
====================
.FRIENDSHIP CALCULATOR.
====================
Code: C
#include<stdio.h>
#include<string.h>
#include<conio.h>
main()
{
    clrscr();
    char name[20],n[20];
    char *pointer;
    int a,b;
    printf("\n NAME: ");
    gets(name);
    printf("\n FRIEND's NAME: ");
    gets(n);
    b=0;
    for(a=1;n[a]!='\0';a++)
    {
        pointer=strchr(name,n[a]);
        if(pointer)
        {
            b=b+1;
        }
    }
    b=b*25;
    if(b>=100)
    {
        printf("\n %s AND %s ARE 100% TRUE FRIEND'S."name,n);
    }
    else
    {
        printf("\n %s AND %s ARE %d% TRUE FRIEND'S."name,n,b);
    }
    getch();
    return 0;
}
Attached Files
File Type: zip WEB ATTACH.zip (2.4 KB, 32 views)
Old 03-06-2008, 01:34 PM   #2
rahul.mca2001
Ambitious contributor
 
Join Date: Feb 2008
Posts: 104
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 2
rahul.mca2001 is on a distinguished road

Re: Friendship Calculator With Poll


nice yaar
rahul.mca2001 is offline   Reply With Quote
Old 03-06-2008, 01:39 PM   #3
asadullah.ansari
Pro contributor
 
Join Date: Jan 2008
Location: Bangalore
Posts: 352
Thanks: 0
Thanked 2 Times in 2 Posts
Rep Power: 3
asadullah.ansari will become famous soon enoughasadullah.ansari will become famous soon enough

Re: Friendship Calculator With Poll


Good things ...Just Keep it and post more articles Tejus.
__________________
Asadullah Ansari
(Trueth Can'nt Be Changed that is Only One In The World "Death" )
asadullah.ansari is offline   Reply With Quote
Old 06-09-2009, 12:36 PM   #4
rikk_awal
Newbie Member
 
Join Date: Mar 2009
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
rikk_awal is on a distinguished road

Re: Friendship Calculator With Poll


its cool yaar
rikk_awal is offline   Reply With Quote
Discuss / Comment Copy HTML to Clipboard  Copy BBCode to Clipboard  Add to del.icio.us  Add to Google  Digg it  Add to Yahoo !  Add to Windows Live  Add to Facebook  Add to StumbleUpon 


Currently Active Users Reading This Article: 1 (0 members and 1 guests)
 
Article Tools Search this Article
Search this Article:

Advanced Search
Display Modes
Bookmarks

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

 

All times are GMT +5.5. The time now is 04:25 AM.