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 19049WHAT 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 41851#include"stdio.h" #include"conio.h" void main() { int a; printf("\n enter a number:"); scanf("%c\n"); getch(); }
12 34591Post New HCL C C++ Errors Interview Questions
I have single column in a file. Input 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15 my output is file 1 have 1,2,3,10,11,12 file 2 have 4,5,6,13,14,15 and file 3 have 7,8,9 how is it possible in datastage
What are the phases of a formal review?
can all users have the privilage to use the sql statement select * (dml)?
What is application context in spring boot? : Spring Boot
How to enter binary string literals in ms sql server?
What is apache used for?
Explain oracle data types with examples?
We are updating a field in sql and alter the row also.after giving the commit command the system is crashed.what will happen to the commands given,whether it will update and alter the table or not?
Which are the different factors that affect the reliability of a network?
What is the procedure to configure the static caching using the content group?
What are plant cell vacuoles? What are their functions? How is the covering membrane of the vacuoles called?
computer hardware used and its function
Why microsoft word is important?
How often does outlook check for mail?
What is difference between static and constant in php?