Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Login         

View Questions and Answers by Category

Advertisements


 
Have Programming Question? Ask it here!
 
 
 


Keerthikumar B K
patterns
1 Answer(s)      a year and 10 months ago
Posted in : Java Interview Questions


                       1
                      212
                     32123
                    4321234
                   543212345

I Want Java code for this pattern..................


Advertisement
View Answers

March 27, 2013 at 12:06 PM


#include<stdio.h>
#include<conio.h>
int main()
{
    int i,j,n;
    printf("enter the val of n:\t");
    scanf("%d",&n);
    for(i=1;i<=n;i++){
for(j=n;j>=i;j--){

 printf(" ");
      } 
for(j=1;j<=2*i-1;j++){
if(i-j>0){printf("%d",i-j+1);}
else{printf("%d",j-i+1);}
}
for(j=n;j>=i;j--){
printf(" ");
}printf("\n");
             }
getch();
return 0;
} 


Related Tutorials/Questions & Answers:
patterns
patterns  who ever answered my previous ques thank u sooooo much!!!!!!!!!! though i was able to solve most complicated progms in java patterns are a night mare for me. thank u once again.can u help me on how to print
Patterns
Patterns       Why Use Patterns?    They have been proven. Patterns reflect... used these patterns in their own work.     They are reusable
Advertisements
AJAX Patterns
AJAX Patterns       The publicly editable repository of all things Ajax. Design Patterns, Frameworks, Libraries, Tools and Links Read full Description
design patterns are used in Struts?
design patterns are used in Struts?  What design patterns are used in Struts
Design Patterns
Design Patterns       Design Patterns: Patterns are solutions for the specific problem in a specific context.  (OR) Patterns are solutions to recurring problem
J2EE design patterns - Design concepts & design patterns
J2EE design patterns  Hi all, could any one send me design patterns links. its very utgent. thanks, lakshminarayana.  Hi Friend, For J2EE Singleton Pattern,visit the following link: http
Creational Patterns
Creational Patterns   This design category is all about the class instantiation. Creational pattern uses class-creation patterns and object-creational patterns. The class-creation pattern uses inheritance
Design patterns in ejb - EJB
Design patterns in ejb  Hi any any one send some links or material on design patterns in EJB iam toally new to this concept(i.e design patterns) ... of design patterns, strategies, and best practices for EJB design and development
Behavioral Patterns
Behavioral Patterns       Behavioral patterns are those patterns which are specifically... to avoid hard-coding and dependencies. The behavioral patterns are: 1. Chain
Design patterns - Design concepts & design patterns
Design patterns  I am new to design patterns and desigining . Please refer me some tutorial or pdfs of design patterns and desigining in easy language and understandable..so that i can apply it in my current project
design patterns - Java Beginners
design patterns  what are the design patterns used in java?  Hi Friend, Please visit the following links: http://www.roseindia.net/designpattern/index.shtml http://www.roseindia.net/javatutorials/J2EE_singleton
Structural Patterns
Structural Patterns   Structural Patterns Structural Patterns describe how objects and classes can be combined to form larger structures. The difference between class patterns and object patterns
Relationship among Design patterns
Relationship among Design patterns       Patterns have relationships and work together... are with the different patterns, better you determine their interactions. Generally, to build
About desing patterns - Struts
About desing patterns  How many Design Patterns are there supported by Java? and what is an Application Controller? what is the difference between Front Controller & Application Contorller?  Hi Friend, Please visit
Categorizing Design Patterns
Categorizing Design Patterns       Patterns focus on different types of problems. Related patterns are grouped together and assigned a type. This helps programmers
Java - Design concepts & design patterns
Java  What are design patterens?  Hi friend, Software professionals may be familiar with the term "Design Patterns," but many have... not see the value and benefits design patterns bring to the software development
PHP Design Patterns
PHP Design Patterns: A design pattern is like a template which guides us to solve a problem. Design patterns are not finished design that can be transformed directly into code. In Object Oriented based design patterns we can get
patterns printing using for loop in java
patterns printing using for loop in java  how to write the code for the pattern as: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
DAO,DTO,VO Design patterns
DAO,DTO,VO Design patterns  explain dao,dto,vo design patterns in strut 1.3?   Data Access Object (DAO) pattern is the most popular design patterns. It is used when you want to separate your presentation code from
why we use design patterns in java?Example?
why we use design patterns in java?Example?  Hi..... Why we use design patterns?,why they are needed in programming languages?,advantages?   hi friend, please go through the following links may this will be helpful
Structural Design Patterns
Structural Design Patterns           Adapter Pattern Structural Design Patterns This pattern establishes a relationship between the two unrelated interfaces
Creational Design Patterns
Creational Design Patterns       Creational design patterns provide the best way in which... flexible approach. There are five types of Creational Patterns. Factory
Design patterns interview questions1
Design patterns interview questions1       Q1. What are design patterns? Ans. A pattern... problems at hand? Ans. No. Design patterns would study the different problems
Design patterns interview questions
Design patterns interview questions       Design patterns... patterns interview questions2 Provides a solution for pre
 

 

 

DMCA.com