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 14877WHAT 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 21254#include"stdio.h" #include"conio.h" void main() { int a; printf("\n enter a number:"); scanf("%c\n"); getch(); }
11 18155Post New HCL C C++ Errors Interview Questions
i need the details about bhel exam.how to apply for that.please send to my email-id.thenmozhi2k7@gmail.com
What is snmp protocol?
Why c is called top down?
Will fuchsia os replace android?
describe your hobbies.
What are the elements of windows 10?
In SAS explain which statement does not perform automatic conversions in comparisons?
What are immuno diffusion reactions?
How far can a network go? (the distance problem)?
What is hibernate and its advantages?
Tell me what is fold line?
Explain what is the difference between constants and read-only variables?
What is a thread c#?
What is post hiring and pre hiring?
How do I create an equation in excel?