Hello,
Can anyone tell me the source code for FLAMES game in
Control Language Programming(CLP)of AS/400.
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 |
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(); } }
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)
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.
Write a program that will convert an integer pointer to an integer and vice-versa.
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
find out the list of users who have access to all t-codes starts with 'SU'? thanks in advance all.
how to test the orientation of the layout in android.to note any changes in the ui design when change orientation
Find out the list of roles which gives access to all t-codes in SAP? Thanks in advance.
How can we write an algorithm for show max and min from two integer inputs ? without using if() , without any functions ...
How to find the list of users who have two codes su01 and pfcg? thank in advance all.
Hi, I want the code to fetch multiple rows in REXX using RLX and CURSOR. Can anyone help me?
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.