ABCDCBA
ABC CBA
AB BA
A A

Answers were Sorted based on User's Feedback



ABCDCBA ABC CBA AB BA A A..

Answer / aarti

a.b.c=c.b.a this statement should be inside any program ang
this should give real meaning

Is This Answer Correct ?    0 Yes 3 No

ABCDCBA ABC CBA AB BA A A..

Answer / notgate779

http://allinterview.com/showanswers/89174.html
<a
href="http://allinterview.com/showanswers/89174.html">click</a>

Is This Answer Correct ?    0 Yes 4 No

ABCDCBA ABC CBA AB BA A A..

Answer / mathu

import java.io.*;

class MainAlpha{
public static void main(String args[])
{
for(int i=65;i<=67;i++){
System.out.printf("%c",i);
System.out.printf("\t");
}
System.out.print("");
for(int j=66;j>=65;j--){
System.out.printf("%c",j);
System.out.printf("\t");
}
System.out.println("");


for(int i=65;i<=66;i++){
System.out.printf("%c",i);
System.out.printf("\t");
}
System.out.print("\t");

for(int j=66;j>=65;j--){
System.out.printf("%c",j);
System.out.printf("\t");
}

System.out.println("");


for(int i=65;i<=65;i++){
System.out.printf("%c",i);
System.out.printf("\t");
}
System.out.print("\t");
System.out.print("\t");
System.out.print("\t");

for(int j=65;j>=65;j--){
System.out.printf("%c",j);
System.out.printf("\t");
}

}

}

Is This Answer Correct ?    2 Yes 7 No

ABCDCBA ABC CBA AB BA A A..

Answer / vignesh1988i

good question it is :

#include<stdio.h>
#include<conio.h>
void main()
{
int m;
char n,o;
printf("enter the no. of lines :");
scanf("%d",&m);
o='A';
for(int i=0;i<m;i++)
{
n='A';
for(int j=0;j<(m-i);j++)
printf("%c",n++);
for(j=0;j<i;j++)
printf(" ");
for(j=0;j<(m-(i+1));j++)
{
if(j==0||j==1)
{
n='A'+(m-2);
printf("%c",n);
}
else
printf("%c",--n);
}
printf("\n");
}
getch();
}

thnak u

Is This Answer Correct ?    10 Yes 16 No

Post New Answer

More C Interview Questions

What is a pointer on a pointer in c programming language?

0 Answers  


Explain the importance and use of each component of this string: Foo.Bar, Version=2.0.205.0, Culture=neutral, PublicKeyToken=593777ae2d274679d

1 Answers   TCS,


Describe for loop and write a c program to sum the series X + x2/2! + x3 /3! + …….. up to fifteen terms.

2 Answers  


Can i use “int” data type to store the value 32768? Why?

0 Answers  


What is new line escape sequence?

0 Answers  






Write a program that his output 1 12 123

0 Answers  


Why c is procedure oriented?

0 Answers  


Without Computer networks, Computers will be half the use. Comment.

0 Answers  


What are pointers really good for, anyway?

0 Answers  


What is nested structure in c?

0 Answers  


Is c pass by value or reference?

0 Answers  


can we declare a function in side the structure?

2 Answers   HCL,


Categories