Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

What is the difference between pure virtual function and virtual function?

1080


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

1019


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

2714


Can a variable be both constant and volatile?

1060


How can I delete a file?

1020


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

1661


Write an algorithm for implementing insertion and deletion operations in a singly linked list using arrays ?

3467


What are the types of arrays in c?

1112


Explain is it valid to address one element beyond the end of an array?

1162


What is the difference between a string copy (strcpy) and a memory copy (memcpy)? When should each be used?

1073


List the difference between a 'copy constructor' and a 'assignment operator' in C?

1045


how can use subset in c program and give more example

1945


How to write c functions that modify head pointer of a linked list?

950


Is it possible to pass an entire structure to functions?

956


Can you please explain the difference between strcpy() and memcpy() function?

1027