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
What is the difference between pure virtual function and virtual function?
i = 25;switch (i) {case 25: printf("The value is 25 ");case 30: printf("The value is 30 "); When the above statements are executed the output will be : a) The value is 25 b) The value is 30 c) The value is 25 The value is 30 d) none
Write a program to compute the similarity between two strings - The program should get the two strings as input - Then it will output one single number which is the percentage of similarity between the two strings
Can a variable be both constant and volatile?
How can I delete a file?
what are the program that using a two dimensional array that list the odd numbers and even numbers separately in a given 10 inputs values
Write an algorithm for implementing insertion and deletion operations in a singly linked list using arrays ?
What are the types of arrays in c?
Explain is it valid to address one element beyond the end of an array?
What is the difference between a string copy (strcpy) and a memory copy (memcpy)? When should each be used?
List the difference between a 'copy constructor' and a 'assignment operator' in C?
how can use subset in c program and give more example
How to write c functions that modify head pointer of a linked list?
Is it possible to pass an entire structure to functions?
Can you please explain the difference between strcpy() and memcpy() function?