program to print this triangle
*
* *
* * *
Answers were Sorted based on User's Feedback
Answer / rajesh
#include<stdio.h>
main()
{
int i,j;
for(i=1;i<=3;i++)
{
for(j=1;j<=i;j++)
printf(""+"*",i,j);
}
}
| Is This Answer Correct ? | 8 Yes | 58 No |
Answer / jayasreesampath
#include<stdio.h>
main()
{
int i,j;
for(i=1;i<=3;i++)
{
for(j=1;j<=3;j++)
printf("\n",i,j);
}
}
| Is This Answer Correct ? | 23 Yes | 91 No |
write a C++ programming using for loop: * * * * * * * * * *
How would you stop a class from class from being derived or inherited?The constructer should not be Private,as object instantiation should be allowed.
Why is main function important?
Consider the following code fragment: int main(void) { int m = 4; mystery ( m ); mystery ( m ); printf("%d", m); return 0; } What is the output on the monitor if mystery is defined as follows ? void mystery (int m) { m = m+3; }
What is iostream in c++ used for?
What is the fastest c++ compiler?
Is it possible to have a recursive inline function in c++?
Write the program form Armstrong no in c++?
How would you use qsort() function to sort an array of structures?
Can a function take variable length arguments, if yes, how?
What does std mean in c++?
class basex { int x; public: void setx(int y) {x=y;} }; class derived : basex {}; What is the access level for the member function "setx" in the class "derived" above? a) private b) local c) global d) public e) protected