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 are categories used for in c?

686


can anyone please tell about the nested interrupts?

1767


Why header files are used?

740


Why is this loop always executing once?

697


Does c have function or method?

688






Input is "rama loves rajesh and rajesh Loves rama also and rajesh wear gloves and bloves" To print output is count the numbers of times repeted the word love without case sensitive.

1700


Define circular linked list.

657


Does c have an equivalent to pascals with statement?

657


what are enumerations in C

825


how to find anagram without using string functions using only loops in c programming

2825


plz let me know how to become a telecom protocol tester. thank you.

1843


FORMATTED INPUT/OUTPUT functions are a) scanf() and printf() b) gets() and puts() c) getchar() and putchar() d) all the above

724


What are different storage class specifiers in c?

752


How are 16- and 32-bit numbers stored?

840


Explain why can’t constant values be used to define an array’s initial size?

966