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

Answers were Sorted based on User's Feedback



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

Answer / sandeep

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

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

Is This Answer Correct ?    0 Yes 2 No

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

Answer / srikanth tupakula

#include<stdio.h>
int main()
{
int
printf("
*****");
printf("
****");
printf("
***");
printf("
**");
printf("
*");
return 0;
}

Is This Answer Correct ?    0 Yes 3 No

Post New Answer

More C Interview Questions

What is realloc in c?

0 Answers  


write a program to copy the string using switch case?

0 Answers   Mind Tree,


What is variable declaration and definition in c?

0 Answers  


What is use of integral promotions in c?

0 Answers  


Write a program to print numbers from 1 to 100 without using loop in c?

0 Answers  






a number is perfect if it is equal to the sum of its proper divisor.. 6 is perfect number coz its proper divisors are 1,2 and three.. and 1+2+3=6... a number is deficient if the sum of its proper divisor is less than the number.. sample: 8 is deficient, coz its proper divisors are 1,2 and 4, and 1+2+4=7. abundant number, if the sum of its proper divisor is greater than the number.. sample..12 is abundant coz 1+2+3+4+6=16 which is geater than 12. now write a program that prompts the user for a number, then determines whether the number is perfect,deficient and abundant..

1 Answers  


how can i get the string which is having two spaces at the end.suppose the string is "Hello World ".Now at the end i have two spaces.i need to print with that spaces .

1 Answers  


Write code for finding depth of tree

2 Answers   Adobe,


What do you mean by a local block?

0 Answers   InterGraph,


what is difference between C and C++

4 Answers  


How can I remove the trailing spaces from a string?

0 Answers   Aspire,


What is #line used for?

0 Answers  


Categories