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 18762WHAT 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 40455#include"stdio.h" #include"conio.h" void main() { int a; printf("\n enter a number:"); scanf("%c\n"); getch(); }
12 33653Post New HCL C C++ Errors Interview Questions
What is cli in linux?
How many moons does jupiter have?
Introduce yourself. What are your hobbies?
Where is the Mapper Output intermediate kay-value data stored ?
What does super () mean in python?
What is the function of parser component in teradata?
What is the difference between chromatin and chromosome?
Explain differentiate between release and pool drain?
What was bayes’ theorem? How was it useful in a machine learning context?
Is any generator is developed which is operated with out diesal or other expensive source?
Take me through the entire vendor cycle.
What is the key difference between NameNode and DataNode in Hadoop?
What are the functions of an intercepting filter?
What are the important plugins that are supported in jmeter?
How do you merge cells in word 2016?