Wednesday, January 16, 2008

Request a Program Here

Here u can Ask a question for a Program and i'll make that program and publish it here

15 comments:

Unknown said...

wap to print '*' using array in a diagonal pattern

output should be:
* *
* *
*
*
* *

Unknown said...

Pl help me find my error
class pattern
{
int i,j,k

public void display()
{
char ch[][]={{'a','b','c','d','e','f','g'},
{'h','i','j','k','l','m','n'},
{'o','p','q','r','s','t','u'},
{'v','w','x','y','z','a','b'},
{'c','d','e','f','g','h','i'},
{'j','k','l','m','n','o','p'},
{'q','r','s','t','u','v','w'}};
for(i=0;i<7;i++)
{
for(j=0;j<7;j++)
{
if(i==j || i+j==6)
{system.out.print(ch[i][j]);}
else
{system.out.print(" ");}
}
system.out.println();
}
}
}

Silicar said...

merging of two single dimensional array into a double dimensional array??

Silicar said...

class pattern
{
int i,j,k;

public void display()
{
char ch[][]={{'a','b','c','d','e','f','g'},
{'h','i','j','k','l','m','n'},
{'o','p','q','r','s','t','u'},
{'v','w','x','y','z','a','b'},
{'c','d','e','f','g','h','i'},
{'j','k','l','m','n','o','p'},
{'q','r','s','t','u','v','w'}};
for(i=0;i<7;i++)
{
for(j=0;j<7;j++)
{
if(i==j || i+j==6)
{System.out.print(ch[i][j]);}
else
{System.out.print(" ");}
}
System.out.println();
}
}
}

Anonymous said...

wap to enter 2D array of size m*n & display the lower triangular matrix..

Unknown said...

Make a project to calculate the gross pay of an employee when the Basic pay is given. The formula of Gross pay is BASIC PAY + HRA(10% of BASIC PAY) + DA(150% of BASIC PAY)

The Input should be taken as shown below:-
Enter Name Of Employee::
Enter Provident Fund::
Enter Basic Pay Of The Employee::

The Output will be shown as:-
Name Of The Employee::
Basic Pay::
Dearness Allowance::
House rent Allowance::
Gross Pay::

Sud said...

Accept a name of three words from the user and display it in the form of Surname Name Middle name

Example:
Input: Enter full name
Mahendra Singh Dhoni

Output:Modified string is
Dhoni Mahendra Singh

sanoj said...

find lcm or not and tell wat is lcm

Unknown said...

Write a program to generate pascal's triangle?

Unknown said...

write a program to print the numbers which are armstrong in one dimensional array.

Unknown said...

write a program to print the numbers which are armstrong in one dimensional array.

Unknown said...

Help Me With Output
1
121
12321
1234321
123454321

Unknown said...

The Middle Numbers In My Previous Output Should Be In The Same Line

Unknown said...

I want a code to find all possible words from a accepted word.eg input-ABC
output-BAC,BCA,CBA,CAB,ACB,ABC

Unknown said...

Help me with output
*
*#
*#*
*#*#
*#*#*