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 18673WHAT 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 40048#include"stdio.h" #include"conio.h" void main() { int a; printf("\n enter a number:"); scanf("%c\n"); getch(); }
12 33401Post New HCL C C++ Errors Interview Questions
Why tcp ip is more reliable?
How much does visual studio cost?
How do you test your database? : sql server database administration
What are the three options available under the rotate table functionality for data transformation?
what is the primary function of the domain controller?
Differentiate between ‘assign’ and ‘retain’ keyword.
What language does google use for machine learning?
How you can extend the class in codeigniter?
Mention the difference between ‘macros’ and ‘prompt’?
Which package is used for jdbc application?
How do you declare a variable in vbscript?
What is the full name of logo?
In Hive, how can you enable buckets?
What si the d/f b/w KVA & KWH, kvarh & kvar, kwh & kvar phase voltage & line voltage
Explain managing session state in windows azure?