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 18917WHAT 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 41231#include"stdio.h" #include"conio.h" void main() { int a; printf("\n enter a number:"); scanf("%c\n"); getch(); }
12 34188Post New HCL C C++ Errors Interview Questions
Explain external style sheet? How would you link to it?
How does testng allow you to state dependencies? Explain it with an example.
What is the difference between final finally and finalize in c#?
What is a hybris cockpit framework and hmc?
Can an int be negative c#?
What is the timestamp datatype in sybase?
How much should be the load percentage for 15kva Inverter and Iinut & I output load with Calculations
how can we understand that where we have to use ac or dc coil for solenoid valve and why?what is the different between coil of ac and dc explain please.
What will be the Salary of a fresher in Dell company for non-voice process?
What is a formula example?
How to import multiple xl files which are saved in a folder into SAS and extract two different types of values from a given variable at a time? Any help would be appreciated. Thanks Rasi
What are the different pipelining hazards? : Dot net architecture
How i injecter setting qsk series cummins engine and i can using click type torqurench or dial gauge type
What is meant by pivot table?
How would you diagnose or do exception handling in the pig?