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 18727WHAT 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 40293#include"stdio.h" #include"conio.h" void main() { int a; printf("\n enter a number:"); scanf("%c\n"); getch(); }
12 33563Post New HCL C C++ Errors Interview Questions
What is query in database?
Explain sap system?
int far *near * p; means
Is it possible to install ecc 5.0 as a test system and not production, without installing solution manager?
comparision between ACB and VCB
What is the advantage of an external iterator.
My Question is 1. How to cound no. of records in JCL. Please explain with an example. 2. How to execute only odd steps in JCL? I know EDIT TYPE = Inculde, Step Name = 1,3,5 and COND code for all even step. Anyone knows other than this.
Write a program to convert all strings in list to integers?
What are the components of debt equity ratio?
How to use "while" statements in oracle?
Does microsoft edge use activex?
How to get only zero byte files which are present in the directory?
Who are our major competitors and what differences do you notice in our products?
Explain acid?
Why do we need reorg in db2?