WAP to generate 2n+1 lines of the following pattern on the
computer screen:
Answer Posted / 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 View All Answers
What is multilevel inheritance?
What is constructor overloading in oop?
What is overloading in oop?
What is difference between data abstraction and encapsulation?
Can a varargs method be overloaded?
What is encapsulation selenium?
What is the types of inheritance?
write a program to find 2 power of a 5digit number with out using big int and exponent ?
write a program to find 2^n+1 ?
What is abstraction oop?
What is data binding in oops?
Is react oop?
State what is encapsulation and friend function?
just right the logic of it 1--> If few people are electing then every time ur candidate should win 2--> arrange books in box, if box carry weight == books weight then take another box..... find the no of box required.
write a program to enter a string like"sunil is a good boy and seeking for a job" not more than 10 characters including space in one line,rest characters should b in other line.if the next line starts from in between the previous word,then print whole word to next line.