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 17569WHAT 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 33436#include"stdio.h" #include"conio.h" void main() { int a; printf("\n enter a number:"); scanf("%c\n"); getch(); }
12 28948Post New HCL C C++ Errors Interview Questions
What do you understand by wpf accesstext control?
What are the most important things to learn in excel?
How to include cms block in template file(.phtml)?
You are the project manager for Fun Days vacation packages. Your new project assignment is to head up the Fun Days resort opening in Austin, Texas. You are estimating the duration of the project plan activities, devising the project schedule, and monitoring and controlling deviations from the schedule. Which of the Project Management Knowledge Areas are you working in? A. Project Scope B. Project Quality C. Project Integration D. Project Time
What does the RUN statement do?
What is alias in db2?
What are the population, sample, training set, design set, validation set, and test set?
Hi Friends , am newbie to ajax. For example just consider one account registration - A form contains 8 text fields with submit button. In this form second texbox contains "username " . On right side of text box there is a label box . On clilck action i need to determine user is available or not. Is it possible on clicking label or should i click submit button.
How variables are declared?
What are the types of trigger in oracle?
How do you define transactions in spring?
How do I open an xml file on my phone?
Is arch linux good for programming?
Which is the latest version of ms word?
Explain differences between checked and unchecked exceptions in java?