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


Please Help Members By Posting Answers For Below Questions

What is malloc calloc and realloc in c?

673


Define Array of pointers.

637


What is spaghetti programming?

673


Explain what will the preprocessor do for a program?

607


What are the similarities between c and c++?

605






How to Throw some light on the splay trees?

623


Why & is used in scanf in c?

629


What is const keyword in c?

753


Is multithreading possible in c?

571


Explain how to reverse singly link list.

609


What is data types?

643


What are the 5 types of organizational structures?

554


What is the difference between break and continue?

608


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

749


Tell me when would you use a pointer to a function?

612