Write a program in c using only loops to print *
* *
* *
*******
Answer Posted / veera
#include<stdio.h>
#include<math.h>
main()
{
clrscr();
printf("*");
printf("\n");
printf("* *");
printf("\n");
printf("* *");
printf("\n");
printf("*******");
getch();
}
| Is This Answer Correct ? | 2 Yes | 4 No |
Post New Answer View All Answers
Write a code to determine the total number of stops an elevator would take to serve N number of people.
What is pointer in c?
Explain main function in c?
Distinguish between actual and formal arguments.
Are pointers integers in c?
What is the difference between a string and an array?
Can we initialize extern variable in c?
What is static volatile in c?
How to declare pointer variables?
What is c language used for?
What are the rules for identifiers in c?
What is indirection in c?
What is meant by errors and debugging?
Explain what is meant by 'bit masking'?
List some of the static data structures in C?