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 polymorphism and why is it important?

0 Answers  


what are the uses of C++

1 Answers  


Write on signed and unsigned integers and give three (3) examples each

1 Answers  


what is the difference between a package and a software?

3 Answers  


what is diff between .net 1.1 and .net 2.0

4 Answers  






Why do we use encapsulation in oops?

0 Answers  


Which language is pure oop?

0 Answers  


What is inheritance in simple words?

0 Answers  


What is destructor example?

0 Answers  


Can we override main method?

0 Answers  


Why and when is a virtual destructor needed?

5 Answers  


define oops concept with example

1 Answers   Cap Gemini,


Categories