write a reverse string to print a stars.(with out using logic)
*****
****
***
**
*

Answer Posted / sandeep

#include<stdio.h>
#include<conio.h>
int main()
{

puts("
*****");
puts("
****");
puts("
***");
puts("
**");
puts("
*");
return 0;
}

Is This Answer Correct ?    0 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is variables in c?

604


a=10;b= 5;c=3;d=3; if(a printf(%d %d %d %d a,b,c,d) else printf("%d %d %d %d a,b,c,d);

645


What is the c value paradox and how is it explained?

573


Is there a built-in function in C that can be used for sorting data?

744


Is flag a keyword in c?

682






List the variables are used for writing doubly linked list program.

1621


5 Write an Algorithm to find the maximum and minimum items in a set of ā€˜nā€™ element.

1582


What are the different properties of variable number of arguments?

665


Why pointers are used in c?

588


How can I write a function that takes a format string and a variable number of arguments?

605


Place the #include statement must be written in the program?

569


Write an efficient algo and C code to shuffle a pack of cards.. this one was a feedback process until we came up with one with no extra storage.

660


How many main () function we can have in a project?

612


What is indirection?

651


What is the difference between exit() and _exit() function in c?

582