write a reverse string to print a stars.(with out using logic)
*****
****
***
**
*
Answers were Sorted based on User's Feedback
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 |
Answer / srikanth tupakula
#include<stdio.h>
int main()
{
int
printf("
*****");
printf("
****");
printf("
***");
printf("
**");
printf("
*");
return 0;
}
Is This Answer Correct ? | 0 Yes | 3 No |
What is realloc in c?
write a program to copy the string using switch case?
What is variable declaration and definition in c?
What is use of integral promotions in c?
Write a program to print numbers from 1 to 100 without using loop in c?
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..
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 .
Write code for finding depth of tree
What do you mean by a local block?
what is difference between C and C++
How can I remove the trailing spaces from a string?
What is #line used for?