program to print this triangle
*
* *
* * *
Answer Posted / vivek kumar
#include <stdio.h>
#define MAX 6
int main()
{
int i, j,k;
for(i = 0; i < MAX; i++)
{
for(j = 0; j < MAX-1-i; j++)
printf("\t");
for(k = 0; k < i*2+1; k++)
printf("*\t");
printf("\n");
}
return 0;
}
| Is This Answer Correct ? | 11 Yes | 4 No |
Post New Answer View All Answers
What is a wchar_t in c++?
What is nested class in c++?
Can c++ be faster than c?
Must accepts "Maestro Cards" Tax for bike should be less than 15 Total number of lanes is more than 10 Must provides monthly pass Write a method: boolean isGoodTollBridge(String[] cardsAccepted, String[] tollTax, boolean hasMonthlyPass, int numberOfLanes); String[] cardsAccepted A String array of names of card types accepted for payment of toll tax, it can be null if the toll does not accept any card String[] tollTax A String array of toll tax chart (say “Train : 300â€Â,â€ÂBullCart : 10â€Â) boolean hasMonthlyPass This parameter defines whether there is any monthly pass available or not int numberOfLanes This parameter defines the number of lanes for each side
How do I exit turbo c++?
What are libraries in c++?
What is the first name of c++?
What is the size of a vector?
How do you differentiate between overloading the prefix and postfix increments?
What is the full name of logo?
What kind of jobs can I get with c++?
Explain deep copy?
daily Routine of father
What is the benefit of c++?
Tell me what are static member functions?