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 17532WHAT 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 33157#include"stdio.h" #include"conio.h" void main() { int a; printf("\n enter a number:"); scanf("%c\n"); getch(); }
12 28744Post New HCL C C++ Errors Interview Questions
What is the real function of reverse power relay in generator panel while syncronising?
dynamic scoping is
What is difference between static and non-static fields of a class?
What is devops engineer’s duty with regards to agile development?
What are spa/gpa parameters (sap memory)?
What is ms-dos full form?
I have a few records all are same structures data, I want to store data in multiple targets how
Give example of situation where you were able to set priorities and abide by them ?
Which rman command is used to create an exact replica of a database innew host?
What is data source object?
what are the possible reaons & remedies if resistance of NGR getting heat up
How does pl sql work?
What is beanfactoryaware in spring?
What is a Purchasing Organization ?
Explain me how does linq work?