Najmul_Kabir

prity

Oct 29th, 2019
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.20 KB | None | 0 0
  1. #include<stdio.h>
  2.  
  3.  
  4. int main()
  5. {
  6. char s[100];
  7. scanf("%[^\n]",s);
  8.  
  9. for(int i=1; i<=10; i++)
  10. {
  11.  
  12. for(int j=1; j<=10; j++)
  13. {
  14. if(i==3)
  15. {
  16. if(j==7||j==8||j==9||j==10||j==1||j==2){
  17.  
  18. printf("* ");
  19.  
  20. }
  21. else
  22. printf(" ");
  23.  
  24. }
  25.  
  26. else if(i>=4)
  27. {
  28. if(i==4&&j==6)
  29. {
  30. printf(" ");
  31.  
  32. }
  33. else if(i==5&&j==6)
  34. {
  35. printf(" ");
  36.  
  37. }
  38. else if(i==6&&j==6)
  39. {
  40. printf(" ");
  41.  
  42. }
  43. else if(i==6&&j==4)
  44. {
  45. printf(" ");
  46.  
  47. }
  48. else if(i==6&&j==5)
  49. {
  50. printf(" ");
  51.  
  52. }
  53. else if(j==3)
  54. printf(" ");
  55.  
  56. else
  57. printf("* ");
  58.  
  59. }
  60. else
  61. printf("* ");
  62.  
  63. }
  64. printf("\n");
  65.  
  66. }
  67.  
  68.  
  69.  
  70. }
Add Comment
Please, Sign In to add comment