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 18897WHAT 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 41117#include"stdio.h" #include"conio.h" void main() { int a; printf("\n enter a number:"); scanf("%c\n"); getch(); }
12 34126Post New HCL C C++ Errors Interview Questions
What is the default font for excel?
Design a built-up column carrying an axial load of 1200 KN. Its length is 8m and it is effectively held in position at both ends and restrained against rotation at one end. Assume yield stress of 250 mpa
Can you get a virus from just opening an email?
What is a href?
How do I delete an end note?
What is the benefits of microsoft word?
What happens in the outbound process?
Brand has become an important aspect of Business. What are the advantages of building a Brand and what steps are available under IPR to protect its ownership?
How do I run a curl command?
What do you mean by the term 'dear money'?
Give me examples for Medium Priority & High Priority Tickets from your support project? Give detailed error message/ issue ,your analysis,finally how did you resolve that ticket along with detailed procedure & explanation and t-codes if any? I have an interview in immediate future so plzz help me...Please reply asap... Urgent!!!! Waiting for your response eagerly... Thanks in advance
What is difference between gr blocked stock and blocked stock?
What is the revealing module pattern?
Can I get weather for my location?
What is offer to hire?