Assume that the int variables i and j have been declared, and that n has been declared and initialized. Write code that causes a "triangle" of asterisks of size n to be output to the screen. Specifically, n lines should be printed out, the first consisting of a single asterisk, the second consisting of two asterisks, the third consistings of three, etc. The last line should consist of n asterisks. Thus, for example, if n has value 3, the output of your code should be * ** *** You should not output any space characters. Hint: Use a for loop nested inside another for loop.
2 17568WHAT WILL BE THE OUTPUT OF THE FOLLOWING QUESTION void main() { int x=4,y=3,z; z=x-- -y; printf("%d%d%d",x,y,z); }
25 33424#include"stdio.h" #include"conio.h" void main() { int a; printf("\n enter a number:"); scanf("%c\n"); getch(); }
12 28940Post New HCL C C++ Errors Interview Questions
If a transaction was missed completly how do you find it?
What are TH- cells?
Is an exe an assembly?
What is the difference between method overriding and overloading?
How can I host my wordpress website for free?
What is an event listener?
Discuss one scenario where you can use Rank() function?
How is nuclear fission different from nuclear fusion?
Explain middleware net dynamics?
What is the difference between developer and enterprise developer accounts?
what is the difference between a basic and dynamic drive in the windows server 2008 environment? : Windows server 2008
Explain the meaning of Amp?
How can you set non-repudiation property?
When should one use mean absolute error over root mean square error as a performance measure for regression problems?
What are Modifiers in Set Analysis?