Question 13 : Write a program in Java to print the following pattern :
public class pattern_1
{
public static void main()
{
int i,j;
for(i=1;i<=5;i++)
{
for(j=i;j>=1;j--)
{
System.out.print(i);
}
System.out.print("\n");
}
}
}
Output :
1
22
333
4444
55555
Java Program :
public class pattern_1
{
public static void main()
{
int i,j;
for(i=1;i<=5;i++)
{
for(j=i;j>=1;j--)
{
System.out.print(i);
}
System.out.print("\n");
}
}
}
Output :
1
22
333
4444
55555
Note : Use the calculator and the notepad provided, at the top, to dry run the program.
really helpfull
ReplyDelete#####
ReplyDelete#@@@#
#@@@#
#@@@#
#####
please solve it
For(i=)
DeleteHi Aman ! Here's your program. Be sure to contact me again through comments if there are any mistakes and like this blog on facebook. Visit the link below :
ReplyDeletehttp://icse-java.blogspot.com/2012/01/visitors-request-3.html
1
ReplyDelete12
123
234
3451
45123 plzzz solve it
There seems to be a problem with your pattern. Please review it and send it to me again at this e-mail address :
Deleteicse.java.blogspot@gmail.com
Class @
DeleteFuck
India
Condom
Etc
tell me is there any way that i could low the graphics of a particular game so that i could play it on my computer because every tome i install a game it gave an error that pixel shader 2.0 not found.
ReplyDelete*
ReplyDelete***
***
***
***
*
*
*
* *
write a program to print the first 20 no. of the following pattern:-
ReplyDelete1,3,6,11,20...
Your question might be a bit wrong. Since difference between 1 & 3 = 2, 3 & 6 = 3, 6 & 11 = 5, 11 & 20 = 9 <===. The last term should be 18. Also please find out the next term of it if you can, because the next difference might be 9, if taking the odd number logic and 11 if taking the prime number logic. If you think that the question is right, please reply.
Deletenext term should be 37
DeleteLogic:-
main series:.......1....3....6......11......20......37.......70
diff btwn elemnts:..2....3.....5.......9.......17......33
diff btwn elmnts :.....1....2.......4......8........16......32
in the last line next element is= 2*prev elemnt
i hope wat ive written is understandable
how to print this:_
ReplyDelete1
1 1
1 2 1
1 3 3 1
1 4 6 4 1
http://icse-java.blogspot.in/2012/02/visitors-request-6.html
DeleteThat's your program.
1.W.A.P. to Calculate LCM of n numbers and HCM of n numbers using array.
ReplyDeletew.a.p. to perform Linear Search.
ReplyDeleteimport java.io.*;
Deletepublic class LinearSearch
{
int Array[]=new int[10];
int i,no,flag;
InputStreamReader in = new InputStreamReader(System.in);
BufferedReader br =new BufferedReader(in);
public void accept()throws IOException
{
System.out.println("Enter 10 numbers");
for(i=0;i<10;i++)
{
Array[i]=Integer.parseInt(br.readLine());
}
}
public void search()throws IOException
{
flag=0;
System.out.println("Enter the number you want to search");
no=Integer.parseInt(br.readLine());
for(i=0;i<10;i++)
{
if(no==Array[i])
{
flag=1;
break;
}
}
if(flag==1)
System.out.println(no+" is found at position "+(i+1));
else
System.out.println("Search unsuccessful");
}
public void main() throws IOException
{
LinearSearch A=new LinearSearch();
A.accept();
A.search();
}
}
WAP to print
ReplyDelete55555
4444
333
22
1
class deep
Delete{
public static void main
{int a=5
for(int i=5;i>=5;i--)
{
for(int j=1;j>=;j--)
{System.out.print(a);
}system.out.println();a--;}}}
import java util.*;
Deleteclass pattern
{
public static void main(String arg[])
{
int i,n,j;
n=1;
for (i=5;i>=n;i--)
{
for(j=5;j>=i;j--)
{
System.out.print(j);
}
System.out. println(i);
}
}
}
Fuck ur mother
Delete...😂😂😂😂
Bad very good😉😉😉
Delete1
ReplyDelete121
12321
1234321
plz help me out with this!!
import java.util.*;
Deleteclass Pattern
{
public static void main(String args[])
{
int i,j,k;
for(i=1;i<=4;i++)
{
for(j=1;j<=i;j++)
{
System.out.print(j);
}
for(k=i-1;k>=1;k--)
{
System.out.print(k);
}
System.out.print("\n");
}
}
}
This comment has been removed by the author.
Delete1
ReplyDelete111
11111
111
1
how to prit this
import java.io.*;
Deletepublic class pattern
{
int r,c,a;
public void main() throws IOException
{
InputStreamReader in=new InputStreamReader(System.in);
BufferedReader br=new BufferedReader (in);
System.out.println("Enter the no. of rows you want");
a=Integer.parseInt(br.readLine());
System.out.println();
for(r=1;r<=a;r++)
{
for(c=1;c<=r;c++)
System.out.print("1 " );
System.out.println();
}
for(r=a-1;r>=1;r--)
{
for(c=1;c<=r;c++)
System.out.print("1 ");
System.out.println();
}
}
}
public class Pattern{
Deletepublic static void main(String []args){
int r,c,a=3;
for(r=1;r<=a;r++)
{
for(c=1;c<=2*r-1;c++)
System.out.print("1 " );
System.out.println();
}
for(r=a-1;r>=1;r--)
{
for(c=1;c<=2*r-1;c++)
System.out.print("1 ");
System.out.println();
}
}
}
print this pattern plzzz
ReplyDelete0
01
024
0369
0481216
05101520
061218243036
07142128354249
0816243240485664
091827364554637281
plzzzz solve it
import java.io.*;
Deletepublic class pattern
{
int r,m,a;
public void main() throws IOException
{
InputStreamReader in=new InputStreamReader(System.in);
BufferedReader br=new BufferedReader (in);
System.out.println("Enter the no. of rows you want");
a=Integer.parseInt(br.readLine());
System.out.println();
for(r=1;r<=a;r++)
{
System.out.print("0");
for(m=1;m<=r;m++)
System.out.print(r*m);
System.out.println();
}
}
}
package logicalPrograms;
Deleteimport java.util.Scanner;
public class Pattern2 {
public static void main(String []args)
{
Scanner sc = new Scanner(System.in);
System.out.println("How many table pattern you want : ");
int num = sc.nextInt();
for(int i=0;i<=num;i++)
{
int sum =0;
for(int j=0;j<=i;j++)
{
System.out.print(sum);
sum+=i;
}
System.out.println("\n");
}
}
}
print
ReplyDelete123454321
1234 4321
123 321
12 21
1 1
import java.io.*;
Deletepublic class pattern
{
public void main() throws IOException
{
InputStreamReader in = new InputStreamReader(System.in);
BufferedReader br =new BufferedReader(in);
int r,c,sp=2,s;
System.out.println("Enter the no of rows you want");
int n=Integer.parseInt(br.readLine());
for(r=1;r<=n-1;r++)
System.out.print(r+" ");
for(r=n;r>=1;r--)
System.out.print(r+" ");
System.out.println();
for(r=n-1;r>=1;r--)
{
for(c=1;c<=r;c++)
System.out.print(c+" ");
for(s=sp;s>=1;s--)
System.out.print(" ");
for(c=r;c>=1;c--)
System.out.print(c+" ");
System.out.println();
sp=sp+4;
}
}
}
pls solve this..
ReplyDelete***********
* *
* *
* *
***********
plz help to print this
ReplyDelete5432112345
5432 2345
543 345
54 45
5 5
import java.io.*;
Deletepublic class pattern
{public void main() throws IOException
{
InputStreamReader in = new InputStreamReader(System.in);
BufferedReader br =new BufferedReader(in);
int r,c,sp=0,s;
System.out.println("Enter the no of rows you want");
int n=Integer.parseInt(br.readLine());
System.out.println();
for(r=1;r<=n;r++)
{
for(c=n;c>=r;c--)
System.out.print(c+" ");
for(s=sp;s>=1;s--)
System.out.print(" ");
for(c=r;c<=n;c++)
System.out.print(c+" ");
System.out.println();
sp=sp+4;
}
}
}
public class pattern
Delete{
public static void main(String args[])
{
int i,j,k;
for(i=1;i<=5;i++)
{
for(j=5;j>=i;j--)
{
System.out.print(j);
}
System.out.print(" ");
for(k=i;k<=5;k++)
{
System.out.print(k);
}
System.out.println();
}
}
}
*
ReplyDelete* * *
* * * * *
* * * * * * *
* * * * *
* * *
*
hey guys i need this to be printed can anyone solve this plssssssssss
thanks in advance
import java.io.*;
Deletepublic class pattern
{
int r,c;
public void main() throws IOException
{
InputStreamReader in=new InputStreamReader(System.in);
BufferedReader br=new BufferedReader (in);
for(r=1;r<=4;r++)
{
for(c=1;c<=r;c++)
System.out.print("* " );
System.out.println();
}
for(r=3;r>=1;r--)
{
for(c=1;c<=r;c++)
System.out.print("* ");
System.out.println();
}
}
}
How to print this?
ReplyDelete1
121
12321
1234321
123454321
1234321
12321
121
1
This is when n=9.
import java.io.*;
Deletepublic class pattern
{
public void main()throws IOException
{
int r,c,a;
InputStreamReader in = new InputStreamReader(System.in);
BufferedReader br =new BufferedReader(in);
System.out.println("How many rows do you want?");
a=Integer.parseInt(br.readLine());
for(r=1;r<=a;r++)
{
for (c=1;c<=r;c++)
System.out.print(c+" ");
for(c=r-1;c>=1;c--)
System.out.print(c+" ");
System.out.println();
}
for(r=a-1;r>=1;r--)
{
for (c=1;c<=r;c++)
System.out.print(c+" ");
for(c=r-1;c>=1;c--)
System.out.print(c+" ");
System.out.println();
}
}
}
Write a program to accept a string and perform the following based on user’s choice:
Delete1. Count and print no. of vowels
2. Count and print no. of consonants
3. Count and print no. of digits
4. Count and print no. of words
pls... solve it
W.A.P to print the following pattern:
DeleteIf n=5
1
121
12321
1234321
123454321
1234321
12321
121
1
pls.... solve this..
public class program7
Delete{
public static void main ()
{
int loop_1,loop_2;
for(loop_1=1;loop_1<=5;loop_1++)
{
for (loop_2=1;loop_2<=loop_1;loop_2++)
System.out.print(loop_2);
for(loop_2=loop_1-1;loop_2>=1;loop_2--)
System.out.print(loop_2);
System.out.println();
}
for(loop_1=5-1;loop_1>=1;loop_1--)
{
for (loop_2=1;loop_2<=loop_1;loop_2++)
System.out.print(loop_2);
for(loop_2=loop_1-1;loop_2>=1;loop_2--)
System.out.print(loop_2);
System.out.println();
}
}
}
a1
ReplyDeletea2 b3
a4 b5 c6
a7 b8 c9 d10
plz solve it..
import java.io.*;
Deletepublic class pattern
{
public void main() throws IOException
{
InputStreamReader in = new InputStreamReader(System.in);
BufferedReader br =new BufferedReader(in);
int r,c,sum=1,s;
System.out.println("Enter the no of rows you want");
int n=Integer.parseInt(br.readLine());
for(r=1;r<=n;r++)
{
sum+=r;
s=sum-r;
for(c=1;c<=r;c++)
{
System.out.print((char)(96+c)+""+s+" ");
s++;
}
System.out.println();
}
}
}
plz help me
ReplyDelete987654321
87654321
7654321
654321
54321
4321
321
21
1
import java.io.*;
Deletepublic class pattern
{
public void main()throws IOException
{
int r,c,a;
InputStreamReader in = new InputStreamReader(System.in);
BufferedReader br =new BufferedReader(in);
System.out.println("How many rows do you want?");
a=Integer.parseInt(br.readLine());
for(r=a;r>=1;r--)
{
for (c=r;c>=1;c--)
System.out.print(c+" ");
System.out.println();
}
}
}
get output as
ReplyDelete0
10
101
0101
01010
how to do it
ReplyDelete555555555
4444 4444
333 333
22 22
1 1
22 22
333 333
4444 4444
555555555
import java.io.*;
Deletepublic class pattern
{
public void main() throws IOException
{
InputStreamReader in=new InputStreamReader(System.in);
BufferedReader br=new BufferedReader (in);
int a,r,c;
System.out.println("Enter the no. of rows you want");
a=Integer.parseInt(br.readLine());
System.out.println();
for(r=a;r>=1;r--)
System.out.print(a);
for(r=a;r>=1;r--)
System.out.print(a);
System.out.println();
for(r=a-1;r>=1;r--)
{
for(c=1;c<=r;c++)
System.out.print(r);
System.out.print(" ");
for(c=1;c<=r;c++)
System.out.print(r);
System.out.println();
}
for(r=2;r<=a-1;r++)
{
for(c=1;c<=r;c++)
System.out.print(r);
System.out.print(" ");
for(c=1;c<=r;c++)
System.out.print(r);
System.out.println();
}
for(r=a;r>=1;r--)
System.out.print(a);
for(r=a;r>=1;r--)
System.out.print(a);
}
}
please help me with this code:
ReplyDelete00000
00123
01357
025811
* * * * *
ReplyDelete* * * *
* * *
* *
*
* *
* * *
* * * *
* * * * *
1 3 5 7 9
ReplyDelete3 5 7 9 1
5 7 9 1 3
7 9 1 3 5
9 1 3 5 7
plz solve this for me
/*
Delete1 3 5 7 9
3 5 7 9 1
5 7 9 1 3
7 9 1 3 5
9 1 3 5 7
*/
public class pattern3
{
public static void main()
{
int i,j,k;
for(i=1;i<=10;i+=2)
{
for(k=i;k<=10;k+=2)
{
System.out.print(k+" ");
}
for(j=1;j<=i-2;j+=2)
{
System.out.print(j+" ");
}
System.out.println();
}
}
}
This doesn't work....
DeletePlease review your code..
This comment has been removed by the author.
DeleteThe right code
Deleteimport java.util.Scanner;
public class s_13579_35791
{
static void main()
{
Scanner ob=new Scanner(System.in);
int k=1;
for (int i=1;i<=5;i++)
{
for (int j=1;j<=5;j++)
{
System.out.print(k);
if (k==9)
k=1;
else
k+=2;
}
k+=2;
System.out.println();
}
}
}
Output:
13579
35791
57913
79135
91357
public class pattern
Delete{
public static void main()
{
int i, j, k;
for(i=1;i<=9;i+=2)
{
for(j=i;j<=9;j+=2)
System.out.print(j);
for(k=1;k<i;k+=2)
System.out.print(k);
System.out.println();
}}}
well, this is a simpler code for
Delete/*
13579
35791
57913
79135
91357
*/
class imp
{
public static void main(String args[])
{
String s="13579";
int l=s.length();
for(int i=0;i<l;i++)
{
System.out.print(s.substring(i));
System.out.print(s.substring(0,i));
System.out.println();
}
}
}
pls tell me how to print the pattern
ReplyDelete12345
22345
33345
44445
55555
plz tell me how to print the pattern
ReplyDelete13579
35791
57913
79135
91357
class pat1{
Deletepublic static void main(String args[])
{
String n="1 3 5 7 9";
int l=n.length();
for(int i=0;i<l;i=i+2)
{
String w=n.substring(i,l);
String q=n.substring(0,i);
System.out.print(w+" ");
System.out.print(q+" ");
System.out.println();
}
}
}
/* 1 3 5 7 9
Delete3 5 7 9 1
5 7 9 1 3
7 9 1 3 5
9 1 3 5 7*/
public class pattern
{
public static void main()
{
int i,j,k;
for(i=1;i<=10;i+=2)
{
for(k=i;k<=10;k+=2)
{
System.out.print(k+" ");
}
for(j=1;j<=i-2;j+=2)
{
System.out.print(j+" ");
}
System.out.println();
}
}
}
plz tell he how to print the pattern
ReplyDelete1
10
101
1010
10101
/* 1
Delete* 1 0
* 1 0 1
* 1 0 1 0
* 1 0 1 0 1
*/
public class pg_166_Q19_d_
{
public static void main(String args[])
{
int i,j,k;
for(i=1;i<=5;i++){
for(j=1;j<=i;j++){
k=(j%2==0)?0:1;
System.out.print(k+" ");
}
System.out.println();
}
}
}
plz tell me for this one
ReplyDeleteWAPto compute charges for sending parcels where the charges are as follows :
for the first 1kg RS.25
for additional weight of 500gms or fraction thereof Rs. 10
Input the weight of a parcel from the user , display the amount to be paid by the customer
woow
Deleteyou should use slab based program
Deleteimport....
Deleteclass...
{
public....
{
BufferedReader......
System.out.println("enter the weight of a parcel").
double w=Double.parseDouble.....;
int ch=0;
int w=(int)(w*1000);
w-=1000;
ch+=25;
while(w>0)
{
w-=500;
ch+=10;
}
System.out.println(ch);
}
}
this is the right program
plz.... help me to solve this........
ReplyDelete1
121
12321
1234321
123454321
1234321
12321
121
1
Can ayone plese hep me with this pattern. If array is to be used, then use single dimensional array please.
ReplyDeleteRRRRRRRRR
ROOOOOOR
ROHHHHOR
ROH I I I HOR
ROH I T I HOR
ROH I I I HOR
ROHHHHOR
ROOOOOOR
RRRRRRRRR
I have some more programme which I am unable to do it I am class 9 student please tell me the site from where I can find all programme if u will tell me I will e-mail u all the programme please help me............and if u now any book which can help me in java please inform me
ReplyDelete$
ReplyDelete###
>>>>>
<<<<<<<<
?????????
this pattern will be in centre
ReplyDeletecode for
ReplyDelete1
3 1
5 3 1
7 5 3 1
9 7 5 3 1
class pattern
Delete{
public static void main(String arg[])
{
for(int i=1;i<=9;i+=2)
{
for(int j=i;j>=1;j-=2)
{
System.out.print(" "+j);
}
System.out.println();
}
}
}
here's my calc program ( dunno if it is the right place to post, but still here it is ) :
ReplyDeletehttp://rjt-rockx.yolasite.com/calc.php
hope it helps !
Please help
ReplyDeletePattern is
1,11,111..........
must continue till there are 10 1s
I hope this is what you require
Deleteclass patternabc{
void main (){
for (int i=1;i<=5;i++){
for (int j=1;j<=i;j++){
System.out.print("1");}
System.out.println();}
}}
Hello anyone I challenge to all Bloggers if they have the potential then solve this problem other wise close this blog page
Deletecan any one solve this problem Print the word BHUPENDRA in star pattern or any other word given by user it should be printed in horizontal way
What exactly do you mean to say by 'star pattern' ?
Delete123454321
ReplyDelete1234 4321
123 321
12 21
1 1
sir plz provide the code for dis pattern
* *
ReplyDelete*
* *
plz provide the code for dis pattern
class prog
Delete{
public static void main()
{
for(int x=1;x<=3;x++)
{
if(x%2==0)
System.out.print("*");
else
System.out.print("**");
System.out.println();
}
}
}
1 1
ReplyDelete12 21
123 321
1234321
public class InternetPattern {
Deletepublic static void main(String[] args) {
int[][]arr={{1,1},{12,21},{123,321},{1234321}};
for(int i=0;i<arr.length;i++)
{
for(int j=0;j<arr[i].length;j++)
{
System.out.print(arr[i][j]+" ");
}
System.out.println();
}
}
}
plz help me..
ReplyDeleteThis comment has been removed by the author.
ReplyDelete5
ReplyDelete45
345
2345
12345
5
ReplyDelete45
345
2345
12345
class pattern
Delete{
public static void main(String arg[])
{
for(int i=5;i>=1;i--)
{
for(int j=i;j<=5;j++)
{
System.out.print(" "+j);
}
System.out.println();
}
}
}
how to print this pattern:-
ReplyDelete13579
3579
579
79
9
import java.util.*;
DeleteClass Kaustav
{
Public static void main(String args[])
{
for(i=1;i<=5;i+=2)
{
for(j=i;j<=5;j+=2)
{
Sop(i);
}
Sopl();
}
}
}
Hello can any one solve this problem Print the word BHUPENDRA in star pattern or any other word given by user
ReplyDeleteHello can any one solve this problem Print ★ shape pattern inside this print asterisk symbol
ReplyDeletehelp me plzzzz....
ReplyDeleteJ
EE
UUU
LLLL
BBBBB
CAN YOU PLZZZ refer me the best book for ICSE computer applications
ReplyDeleteHello anyone I challenge to all Bloggers if they have the potential then solve this problem other wise close this blog page
ReplyDeletecan any one solve this problem Print the word BHUPENDRA in star pattern or any other word given by user it should be printed in horizontal way
Hello everyone I challenge to all Bloggers if they have the potential then solve this problem other wise close this blog page
ReplyDeletecan any one solve this problem Print the word BHUPENDRA in star pattern or any other word given by user it should be printed in horizontal way
Hello anyone I challenge to all Bloggers if they have the potential then solve this problem other wise close this blog page
ReplyDeletecan any one solve this problem Print the word BHUPENDRA in star pattern or any other word given by user it should be printed in horizontal way
Hello anyone I challenge to all Bloggers if they have the potential then solve this problem other wise close this blog page
ReplyDeletecan any one solve this problem Print the word BHUPENDRA in star pattern or any other word given by user it should be printed in horizontal way
plz help to print
ReplyDeletethis pattern
1 2 3
1 2 3
1 2 3
import java.util.*;
DeleteClass ak
{
Public static void main(String args[])
{
for(int a=1;a<=3;a++)
{
for(int b=1;b<=a;b++)
{
Sop(b);
}
Sopl();
}
}
}
How to PRINT THIS:
ReplyDeleteI I
I I I I
I I I I I
1
ReplyDelete232
34543
4567654
567898765
need help plz!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
0
ReplyDelete101
21012
3210123
432101234
54321012345
Pls help to solve this
Please help to print this pattern
ReplyDelete1
2*3
4*5*6
4*5*6
2*3
1
this should get printed if n=3
Deleteif n=3
ReplyDeleteCan any one tell me a trick to solve any given pattern.......plz as fast as possible really required for my exams......Thanks in advance 😊
ReplyDeleteplz do this :- 6 6 6 6 6 6
ReplyDelete5 5 5 5 5
4 4 4 4
3 3 3
2 2
1
public class NumPtr {
Delete/**
* @param args the command line arguments
*/
public static void main(String[] args) {
for(int i=5;i>=1;i--){
for(int j=i;j>=1;j--){
System.out.print(i+"");
}
System.out.println();
}
}
}
*********
ReplyDelete*
*
*
*
*********
plezz do this
Can you give me the answer
ReplyDelete1000A
010B0
00C00
0D010
E0001
Please do as soon as possible.....have an exam tomorrow
ReplyDelete13579
ReplyDelete35791
57813
79135
91357
/* 1
Delete* 1 0
* 1 0 1
* 1 0 1 0
* 1 0 1 0 1
*/
public class pg_166_Q19_d_
{
public static void main(String args[])
{
int i,j,k;
for(i=1;i<=5;i++){
for(j=1;j<=i;j++){
k=(j%2==0)?0:1;
System.out.print(k+" ");
}
System.out.println();
}
}
}
Please answer this:-
ReplyDelete1 3 5 7 9
3 5 7 9
5 7 9
7 9
9
import java.io.*;
Deleteclass Pattern
{
public static void main (String args[])
{
int n=1;
for (int i=1; i<=5; i++)
{
for (int j=n; j<=9; j=j+2)
{
System.out.print (j);
}
System.out.println (" ");
n++
}
}
}
please answer the above program fast...because i have an exam this monday
ReplyDeleteclass pattern
Delete{
public static void main(String[] args)
{
int i, j;
for(i=1;i<=9;i=i+2)
{
for(j=i;j<=9;j=j+2)
{
System.out.print(j+" ") ;
}
System.out.println() ;
}
}
}
Thank you very much....I have another program will you please answer it
Deleteyo!
ReplyDeleteWAP to do the following patterns:-
ReplyDeletea.) 1
2 1
3 2 1
4 3 2 1
5 4 3 2 1
b.)
1 2 3 4 5
1 2 3 4
1 2 3
1 2
1
c.) 5 4 3 2 1
5 4 3 2
5 4 3
5 4
5
d.)
\
WAp in JAVA TO PRINT:_
1
2 1
3 2 1
4 3 2 1
5 4 3 2 1
13579
ReplyDelete35791
57813
79135
91357
Plz do this pattern.
Delete/* 1
Delete* 1 0
* 1 0 1
* 1 0 1 0
* 1 0 1 0 1
*/
public class pg_166_Q19_d_
{
public static void main(String args[])
{
int i,j,k;
for(i=1;i<=5;i++){
for(j=1;j<=i;j++){
k=(j%2==0)?0:1;
System.out.print(k+" ");
}
System.out.println();
}
}
}
How to bring this output
ReplyDelete123456787654321
Solve this:
ReplyDeletetiger
ige
g
ige
tiger
The word could be anything inputted by the user
Solve this plzzzz
And earn a cookie! :D
Solve this:
ReplyDeletetiger
ige
g
ige
tiger
The word could be anything inputted by the user
Solve this plzzzz
And earn a cookie! :D
generate the following series
ReplyDeletea)
2,5,10,17,26.............n terms
b)
11,22,33,44.................n terms
c)
0,4,18,48,100..........n terms
answer to b)
Deleteclass prog
{
public static void main(int n)
{int x=11;
for(int t=1;t<=n;t++)
{
System.out.println(x);
x=x+11;
}
}
}
plz help
ReplyDelete*****
ReplyDelete* *
* *
*
please solve it....plz plz
This comment has been removed by the author.
ReplyDelete1 2 3 4
ReplyDelete5 6 7
8 9
10
Please solve this
1 2 3 4
ReplyDelete5 6 7
8 9
10
Please solve this
This comment has been removed by the author.
ReplyDeleteThis comment has been removed by the author.
ReplyDelete12345
ReplyDelete1234
123
12
1
Please give code...
class Pattern1
Delete{
public static void main()
{
for(int r=5;r>=1;r--)
{
for(int c=1;c<=r;c++)
System.out.print(c);
System.out.println();
}
}
}
can u plz help to print the following series
ReplyDelete1
13
135
1357
I
ReplyDeleteIC
ICS
ICSE
I am also searching for that bro...
Deleteclass Pattern2
Delete{
public static void main()
{
String n="ICSE";
int i;
for(i=1;i<=n.length();i++)
{
System.out.println(n.substring(0,i));
}
}
}
how to print this:_
ReplyDeletei
cc
sss
eeee
Wap to print the following patter of stars * *
ReplyDelete* *
*
* *
* *
How to print :
ReplyDelete1234321
123*321
12***21
1*****1
import java.io.*;
Deleteclass patterns1correction
{public static void main (String args[])throws IOException
{int sp=-1,x=4;
for (int i=1;i<=4;i++)
{
for (int j=1;j<=x;j++)
{
System.out.print(j);
}
for (int j=1;j<=sp;j++)
{
System.out.print("*");
}
if(i==1)
{
x=x-1;
}
for (int j=x;j>=1;j--)
{System.out.print(j);
}
if(i!=1)
{
x--;
}
sp=sp+2;
System.out.println();
}
}
}
I want to about this pattern
ReplyDelete13579
35791
57913
79135
91357
please help me in this:
ReplyDelete15 14 13 12 11
10 9 8 7
6 5 4
3 2
1
please hel me to solve this prog.
ReplyDelete********
*** ***
** **
* * if you solve it thn FUCK OFF
0
ReplyDelete1 1
2 3 5
8 13 21 34
how to print this plz tell
ReplyDeletex x x x x
x x
x 0 x
x x
x x x x x
it has a mistake during publishing the program is like a square made by x and has 0 in the centre.
DeleteSomeone plz help me
ReplyDeleteTo write a java program to convert string to integers and vice versa
Hello,
ReplyDeleteWAP to print the following pattern :
1
12
123
1234
12345
123456
Thanks,
Anonymous
12345
ReplyDelete23451
34512
45123
51234
5,55,555,5555,55555,......
ReplyDeletesource code for this pattern??
plz help
ReplyDelete13579
1357
135
13
1
help!!!!!!!!!!!
ReplyDeletebluej
blue
blu
bl
u
plz print.
ReplyDeleteI
I C
I C S
I C S E
class Pattern2
Delete{
public static void main()
{
String n="ICSE";
int i;
for(i=1;i<=n.length();i++)
{
System.out.println(n.substring(0,i));
}
}
}
Sample Input:APPLE
ReplyDeleteSample Output:
P
PPL
APPLE
-----------------
Plz give a bluej code for the abv pyramid pattern.
solve this for me:
ReplyDeleteA B C D E
A B C D A
A B C A B
A B A B C
A A B C D
class imp
Delete{
public static void main(String args[])
{
String s="ABCDE";
int l=s.length();
for(int i=0;i<l;i++)
{
System.out.print(s.substring(i));
System.out.print(s.substring(0,i));
System.out.println();
}
}
}
This comment has been removed by the author.
ReplyDeleteNice written about Java Number Pattern Programs .
ReplyDeletethanks for sharing this
To print Tha pattern of given word
ReplyDeleteInput - class
Output -sssss
ssss
aaa
ll
c
please help me..
ReplyDeleteInput : 5
Output :
M*****M
M*M*M*M
M**M**M
M*****M
M*****M
Help kr do yrr koi
ReplyDelete1
21
321
4321
54321
Wap to print the following pattern
ReplyDeleteschool
schoo
scho
sch
sc
s
Plz reply
please solve this:
ReplyDeleteMALAYALAM
ALAYALA
LAYAL
AYA
Y
Please solve this
ReplyDelete1234567
23456
345
4
345
23456
1234567
Please Solve This :
ReplyDelete1
2 6
3 7 10
4 8 11 13
5 9 12 14 15
help me with this..
ReplyDelete1
2 6
3 7 10
4 8 11 13
5 9 12 14 15
how to program this by scanner*666666
ReplyDelete*55555
*4444
*333
*22
*1
how to write this one!
ReplyDelete1 20
2 19
3 18
4 17
5 16
0,4,18,48,100.......n terms
ReplyDelete2 4 6 8 10
ReplyDelete2 4 6 8 10
2 4 6 8 10
2 4 6 8 10
2 4 6 8 10
How to write this??????
I need a program to print the following
ReplyDelete** ***** ***** **
**** ** * ** * ****
** ** ** * ** * ** **
****** ** * ** * ******
** ** ** * ** * ** **
** ** ** * ** * ** **
** ** ***** ***** ** **
Can anyone please help me out
Plzz help me
ReplyDelete1
212
32123
4321234
32123
212
1
Its very complicated for me
This comment has been removed by the author.
ReplyDeletePlus solve this
ReplyDelete1
121
12321
1234321
12321
121
1
ReplyDeletecan you please print
0
12
345
543
21
0
B
ReplyDeleteLL
UUU
EEEE
please solve it
Give program to print this pattern
ReplyDeleteI
IC
ICS
ICSE
How to print this using String:
ReplyDeleteJ
EJ
UEJ
LUEJ
BLUEJ
How to print this pattern.
ReplyDelete9204605198
920460519
92046051
9204605
920460
92046
9204
920
92
9
How to print this pattern.
ReplyDelete9204605198
920460519
92046051
9204605
920460
92046
9204
920
92
9
WRITE A PROGRAM TO PRINT DAXIT NUMBER AND PALINDROME NUMBER USING SWITCH CASE STATEMENT/MENU DRIVEN.
ReplyDeleteDAXIT NUMBER MEANS THE SUM OF ITS DIGITS POWERED WITH THEIR RESPECTIVE POSITION IS EQUAL TO THE ORIGINAL NUMBER
EG 135, 1^1+3^2+5^3=135
I HOPE THAT YOU KNOW PALINDROME NUMBER.
PATTERN =
ReplyDelete*********
*******
*****
***
*
***
*****
*******
*********
PLEASE PRINT THIS
Please help me to print
ReplyDeleteBLUE
BLU
BL
B
no calculator and notepad are provided
ReplyDeleteplz solve this
ReplyDeleteB
LL
UUU
EEEE
Plz solve this
ReplyDelete13579
35791
57813
79135
91357
@
ReplyDelete@@
@@@
@@@@
@@@
@@
@
bro pla teach me coding easy and fast
ReplyDeletePlease solve this using nested loop in java :
ReplyDelete*
* #
* # *
* # * #
* # * # *