Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main(){
- int n, i, j;
- scanf("%d", &n);
- for(i=0;i<n;i++){
- printf("+");
- }
- printf("\n");/* dokolku vi javuva greska vo pecatenje obidete
- se da go stavite printf("\n") vo zagrardite, a izbrisete go postoeckiot ili izbrisete gi samite zagradi
- I po zelba trgnete go komentarov koga ke ste na vezbi :)
- */
- for(i=1;i<n-1;i++){
- printf("+");
- for(j=1;j<n-1;j++){
- printf("-");
- }
- printf("+\n");
- }
- for(i=0;i<n;i++) printf("+");
- printf("\n");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement