Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


Hello,
Can anyone tell me the source code for FLAMES game in
Control Language Programming(CLP)of AS/400.



Hello, Can anyone tell me the source code for FLAMES game in Control Language Programming(CLP)of ..

Answer / sujith shetty

#include<iostream.h>
#include<conio.h>
#include<stdio.h>
#include<string.h>

void main()
{ char str1[20];
char str2[20];
int r,x,y,n,count1,count2,points=0;

clrscr();
cout<<"\nPlease enter a boy's name: \n\n";
gets(str1);

cout<<"\nEnter a girl's name: \n\n";
gets(str2);

count1=strlen(str1);
count2=strlen(str2);

for (x=0; x<count1; x++)
{ for (y=0; y<count2; y++)
{ if (str1[x]==str2[y])
points++;
else;}

if(points!=0)
points++;
}

for (n=1; n<count1; n++)
{ if (str1[0]==str1[n])
points++;
else;}

cout<<"\n$Flame match$ \n",points;

r=points%6;
switch®

{
case 1:cout<<"\nFriends";
break;
case 2:cout<<"\nLovers";
break;
case 3:cout<<"\nAnger";
break;
case 4:cout<<"\nMarriage";
break;
case 5:cout<<"\nEngaged";
break;
case 6:cout<<"\nSweethearts";
break;
}

getch();
}

Is This Answer Correct ?    0 Yes 3 No

Post New Answer

More Programming Code AllOther Interview Questions

1.Explain what happens to a session object when the browser associated with it is closed? 2.Explain how a session object is created and used. (Note: you are not required to provide the Java statements such as ‘getAttribute’)

0 Answers  


Write a Program to truncate a given floating point value (e.g.16.25=16).

0 Answers   InterGraph,


Write a program in prolog to compute the factorial of a number using iteration/tail recursion?

1 Answers  


Write a Program to find the number of words in a sentence.

0 Answers   InterGraph,


How to find the list of users who have two codes su01 and pfcg? thank in advance all.

0 Answers  


How many digit have a Polaris 1995 300c.c. 2x4 nad how many have a Polaris 2007 300 c.c 2x4? And what site I can check this information???

0 Answers   FlashTECH,


what full form name of B.K.U.

0 Answers  


Write a program to Print the Pascal triangle

0 Answers   InterGraph,


Is it possible to write JAVA program without including any of the packages,such as "import java.io.*"; bcoz I instantly wrote a code without "import..." statement and runned the program on command Line & it worked. the code is: class Person { String name; int age; Person(String s,int a) { name = s; age = a; } accept() { System.out.println(name+"Hi!!!!!"); System.out.println(age); } } class Demo { public static void main(Strings args[])throws IOException { String name = args[0]; int age = Integer.parseInt(args[1]); Person p = new Person(name,age); p.accept(); } }

0 Answers  


how to test the orientation of the layout in android.to note any changes in the ui design when change orientation

0 Answers  


Write a program that will convert an integer pointer to an integer and vice-versa.

0 Answers  


Write a program that implements a date class containing day, month and year as data members. Implement assignment operator and copy constructor in this class.

0 Answers  


Categories