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 a class?

32 Answers   Infosys, TCS, Thylak,


What are properties in oop?

0 Answers  


why freind function takes more parameter than normal member function in c++?

1 Answers   IBM,


#include <iostream> using namespace std; int main() { int a = 2; int c[5][5]; for (int x=0;x<5;x++) { for (int y=0;y<5;y++) { c[x][y] = x*y; } } cout << c[a][c[1][4]]; }

2 Answers   TCS, Wipro,


What type of Job you are providing?

0 Answers  






I am DeePu sotware engineer working with EMC corporation ,recently I had attended mcafee interview . Their questions were at heights of stupidity , I don't know what they want , I am a developer with 4 year experienced .I am listing the questions asked 1:What is the flag in g++ to avoid structure padding 2:In wht order parameters are passed to stack 3:How you will edit code segment of an exe

1 Answers  


what is the use of template classes in c++

1 Answers  


Why is oop useful?

0 Answers  


what is the difference between ERROR and EXCEPTION?

14 Answers   NIIT, nvidia,


explain defference between structure and class with example

1 Answers  


Advantage and disadvantage of routing in telecom sector

0 Answers  


how do you handle yourself when you feel the wald is aganist you

2 Answers  


Categories