write a c program to accept a number between 3 & 10 & print a square of stars. if user enters 4 the output should be as shown **** * * * * ****

write a c program to accept a number between 3 & 10 & print a square of stars. if user enters 4 the output should be as shown **** * * * * ****

#include 
main()
{
        int count;
  printf("\n**************");         

  for( count = 1 ; count <= 8 ; ++count)
    print f("\n*            *");       

  printf("\n**************\n");       
  
}

By:navya
Date:0000-00-00 00:00:00

#include
#include
void main()
{
int row,i,j,k;
printf("enter the no of row::");
scanf("%d",&row);
for(i=0;i

By:Anant Shukla
Date:0000-00-00 00:00:00

#include 
void main()
{
  int count,a;
  printf("\n-------------------------\n"); 
  printf("\n enter the number=");
  scanf("%d",&a);
  if(92)
  {
   for( count = 1 ; count <= a ; ++count)
    print f("\n* ");       
  }  
  else
  printf("number must be in between 3 to 8");
  printf("\n-------------------------\n");  
}     



By:vishal dhobale
Date:0000-00-00 00:00:00

Post Your Answers


User Email:

User Name:
Answers:

Related C Subjective Links

C Subjective interview questions and answers for experienced and fresher