WAP to generate 2n+1 lines of the following pattern on the
computer screen:

Answers were Sorted based on User's Feedback



WAP to generate 2n+1 lines of the following pattern on the computer screen:..

Answer / krishnan

*
* *
* *
* *
* *
* *
*

Is This Answer Correct ?    1 Yes 2 No

WAP to generate 2n+1 lines of the following pattern on the computer screen:..

Answer / tejaswini dhatrak

#include<stdio.h>
#include<conio.h>
int main()
{
printf(“*”);
for(int i=1;i<=5;i++)
{
printf(“**”);
}
printf(“*”);
return 0;
}

Is This Answer Correct ?    1 Yes 2 No

Post New Answer

More OOPS Interview Questions

what is oppes

2 Answers  


wht is ditch

0 Answers  


In what situation factory design patterns,DAO design patterns,singleton design patterns should be applied.?

2 Answers  


What is the difference between static polymorphism and dynamic polymorphism?

0 Answers  


What is overloading in oops?

0 Answers  


What is debug class?what is trace class? What differences are between them? With examples.

0 Answers  


What is class and example?

0 Answers  


What is inheritance in oop?

0 Answers  


Out of 4 concepts, which 3 C++ Follow?

1 Answers   TCS,


Program to read a comment string

1 Answers   IBM,


Is abstract thinking intelligence?

0 Answers  


why overriding?

3 Answers  


Categories