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 17574WHAT 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 33460#include"stdio.h" #include"conio.h" void main() { int a; printf("\n enter a number:"); scanf("%c\n"); getch(); }
12 28984Post New HCL C C++ Errors Interview Questions
What does n a mean in vlookup?
How do I insert a merge field in word?
Discuss the different database types in SQL Azure?
How to use windows user to connect to the server?
What is a print index?
Ln component and service which logic that we have to write?
How do I create autotext in word?
What is the function of the yolk sac?
explain the working components of django?
What are route constraints in mvc?
What is the shortcut key to merge cells in word?
What is the purpose of tables, private synonyms and public synonyms in Oracle?
How can government stop cash flow in the economy?
Explain Data Science Vs Machine Learning?
Where does the user specify the maximum number of instances with the auto scaling commands?