ABCDCBA
ABC CBA
AB BA
A A




Answers were Sorted based on User's Feedback



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 ?    9 Yes 11 No

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 2 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 4 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 3 No

Post New Answer



More C Interview Questions

explain about storage of union elements.

2 Answers   ABC, Bosch,


hi any body pls give me company name interview conduct "c" language only

0 Answers  


what is the similarities between. system call and library function?

1 Answers   Wipro,


why do we use pointer instead directly acessing the data?

2 Answers  


What is wrong with this code such that it doesnt produce the input reversed? #include <stdio.h> #include <stdlib.h> #include <string.h> int main(void) { char Space = ' '; char LineOfText; float count; LineOfText = getchar(); while ((LineOfText = getchar()) != '/n'); { count = strlen(LineOfText) - 1; while (count >= 0) { putchar(LineOfText[count]); count--; } } getchar(); return 0; }

2 Answers  






write a program to remove duplicate from an ordered char array? in c

2 Answers  


int main() { int days; printf("enter days you are late"); scanf("%d",days); if (days<=5) printf("5o paisa fine"); if (days<=10&&days>=6) printf("1rs fine"); if(days>10) printf("10 rs fine"); if(days=30) printf("membership cancelled"); return 0; } tell me whats wrong in this program? is it right?

2 Answers  


A B C D E F G F E D C B A A B C D E F F E D C B A A B C D E E D C B A A B C D D C B A A B C C B A A B B A A A

2 Answers  


What is the heap in c?

0 Answers  


can we change the default calling convention in c if yes than how.........?

0 Answers   Aptech,


what do the 'c' and 'v' in argc and argv stand for?

0 Answers   TISL,


Can you add pointers together? Why would you?

0 Answers  






Categories