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 |
Write a program to Print the Pascal triangle
Could u please tell me any UNIX scripts that 'll lead to find the network latency of the servers.?or else any unix command to find the network latency of a server?Thnx in advance...
Devise a program to implement the Fibonacci sequence.
Write code that allows to create only one instance of a class?
can any one give me code to keyed a flat file and used chain in RPGLE to search any item
i wrote from two tables (employee and department) 1.select * from employee,department; (it is cartesian product) but 2.select * from employee department; (?????????????????) by default it displays the employee table,what is the reason it is not taking department ??? mail @ mak2786@gmail.com Arunkumar
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
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(); } }
How can we write an algorithm for show max and min from two integer inputs ? without using if() , without any functions ...
1.What type of material can be sent from a Java servlet to a browser ? How does the browser know how to deal with the material? 2.Explain what happens to a servlet when a servlet engine is sent a GET request.
Write a program in prolog to compute the factorial of a number using iteration/tail recursion?
i am doing my final year project about programming use verilog ,i am new about it so got problem,i want to record the readings of a waveform every 2us use the verilog code ,every ten readings i need to add them together after that i need to compare this series of number to get which one is the biggest , right now i don't know how to use code to store the readings every 2us on a waveform ,pls help me thanks a lot .