0

Please who can assist me in writing a program that prints a box, an oval,an arrow and a diamond with C++

/* This is the diamond shape program I can code separately but I can't join them together */  #include<iostream.h>  #include<math.h>  void main()  {  int size=3;  int i,j,k;  for(i=size;i>=-size;i--){  for(j=1;j<=abs(i);j++)  {  cout<<" ";  }      for(k=size;k>=abs(i);k--)  {  cout<<"* ";  }  cout<<endl;  }  }

30th Dec 2020, 11:27 PM
Folorunso Victor
Folorunso Victor - avatar
2 odpowiedzi
+ 2
Everyone can assist you, if you make an attempt and will not reach the goal, just post it and describe your problem, or if you have no idea how to start, then simply write it here
30th Dec 2020, 11:34 PM
Michal Doruch
+ 1
Looks like either you used a word processor to write this code or copy pasted it from somewhere, as your code contains a lot of non-graphic characters in it which is generally used by a word processor to format the text.
31st Dec 2020, 1:21 AM
Arsenic
Arsenic - avatar