Output for following program using for loop only
*
* *
* * *
* * * *
* * * * *
Answer Posted / dhruv sharma rkdf
#include<stdio.h>
#include<conio.h>
void main(){
int i,j;
clrscr();
for(i=1;i<=5;i++){
for(j=i;j>0;j--){
printf("*");
}
printf("\n");
}
getch();
}
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Why we use stdio h in c?
What is main return c?
How do you convert strings to numbers in C?
write a c program to find the largest and 2nd largest numbers from the given n numbers without using arrays
How can I read/write structures from/to data files?
How do I round numbers?
What is the meaning of ?
What are the two forms of #include directive?
What is wrong with this declaration?
Write a C program that will accept a hexadecimal number as input and then display a menu that will permit any of the following operations to be carried out: Display the hexadecimal equivalent of the one's complement. (b) Carry out a masking operation and then display the hexadecimal equivalent of the result. (c) Carry out a bit shifting operation and then display the hexadecimal equivalent of the result. (d) Exit. If the masking operation is selected, prompt the user lor the type of operation (bitwise and, bitwise exclusive or, or bitwise or) and then a (hexadecimal) value for the mask. If the bit shifting operation is selected. prompt the user for the type of shift (left or right), and then the number of bits. Test the program with several different (hexadecimal) input values of your own choice.
What is maximum size of array in c?
Can we assign integer value to char in c?
What does != Mean in c?
What is the total generic pointer type?
What are header files and what are its uses in C programming?