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 18915WHAT 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 41217#include"stdio.h" #include"conio.h" void main() { int a; printf("\n enter a number:"); scanf("%c\n"); getch(); }
12 34182Post New HCL C C++ Errors Interview Questions
How does the HTTP handle state?
What is the difference between dbm cfg and db cfg file in db2 ?
how to calculate cut length of re-bar in a circle . because we not place same length of re-bar in whole circle maximum in center and minimum at corner so how to calculate middle bars???
What is the default argument in all the functions inside a class?
Can any one tell me.......How the test engg's start testing in the compy environment.....real time tester PLSSSS help me i need in depth information regarding this...
How will you check python version?
What is node js good for?
CATIA:SPRING WITH SOME RADIUS AXIS
What is the interface in c#?
What is the difference between “finalize” and “finally” methods in c#?
Tell me what does pear stands for?
Define a chasm trap? : sap bobi
What two possibilities are there to describe how gene fragments may have evolved?
What is the use of Tax amount rounding mode field while setting discounts?
What is the necessary control that must put in order to use Ajax Controls?