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 18892WHAT 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 41090#include"stdio.h" #include"conio.h" void main() { int a; printf("\n enter a number:"); scanf("%c\n"); getch(); }
12 34113Post New HCL C C++ Errors Interview Questions
Why do you want to join in SEBI?
Can I upgrade windows 7 32bit to windows 10 64bit?
What is a route?
What is a normal distribution curve?
What are the drawbacks of using ado.net?
What happens when you travel across the dateline?
What are the best tools available now for creation of accessible Web sites?
What is the dimension in bw? How would you optimize the dimensions?
What is a form used for in a database?
What is the formula for total cost in excel?
What is protected inheritance?
who are the major players in market providing loans against rent receivables
What is data structure in r?
Name some data dictionary objects?
What are Governer limits in Apex and Salesforce?