Monday, January 4, 2021

Control and looping

Control and looping 


Question ID 

1114210080 : SQUARE STAR PATTERN


Logic Test case 1


Input (stdin)

2

expected Output 

**

**


Logic Test case 2

Input (stdin)

4


Expected Output 

****

****

****

****


code area :



#include <stdio.h>


int main()


{


  int row,num,l;


  scanf("%d",&num);


  for(row=1;row<=num;row++)


  {


    for(l=1;l<=num;l++)


    {


    printf("*");


    }


  printf("\n");


  }


 return 0;


}






No comments:

Post a Comment

cisco Cybersecurity Essentials Quiz 8 answer in bold

Question  1 Correct Mark 2.00 out of 2.00 Flag question Question text A company has had several incidents involving users downloading unauth...