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

plzzzzzzzzz xplain this code import java.awt.*; import java.awt.event.*; public class Link extends Frame implements ActionListener { Label l1; Button b1; public static void main(String sr[]) { new Link().setVisible(true); } public Link() { super("Warning"); setSize(500,500); setBackground(Color.lightGray); setLayout(null); l1=new Label("There is no Link"); l1.setBounds(0,0,500,460); l1.setFont(new Font("TimesRoman",Font.BOLD,35)); l1.setAlignment(Label.CENTER); add(l1); b1=new Button("QUIT"); b1.setBackground(Color.orange); b1.setBounds(0,460,500,40); b1.addActionListener(this); add(b1); } public void actionPerformed(ActionEvent e) { this.dispose(); } }

0 Answers  


Write a Program to find the sum of digits of a given number until the sum becomes a single digit. (e.g. 12345=>1+2+3+4+5=15=>1+5=6)

0 Answers   InterGraph,


I have multiple datasets and I have to search a particular string in all of them at a single time. Please suggest a full jcl or rexx tool for it.

0 Answers  


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

0 Answers  


i have two internal tables with customer and credit amount in one table then customer and debit amount in another table. now i need output in single list as customer, credit amount, debit amount and (credit - debit). help me please

1 Answers  


find out the list of users who have access to all t-codes starts with 'SU'? thanks in advance all.

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  


Find out the list of roles which gives access to all t-codes in SAP? Thanks in advance.

0 Answers  


How can we write an algorithm for show max and min from two integer inputs ? without using if() , without any functions ...

1 Answers  


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

0 Answers  


Hi, I want the code to fetch multiple rows in REXX using RLX and CURSOR. Can anyone help me?

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