Control C202E P32533


Statement
 

pdf   zip

thehtml

Feu un programa que llegeixi un natural n i escrigui figures n× n com es mostra als exemples.

Entrada

L’entrada és un natural n ≥ 1.

Sortida

Cal escriure la figura corresponent.

Public test cases
  • Input

    8
    

    Output

    +++++++/
    ++++++/*
    +++++/**
    ++++/***
    +++/****
    ++/*****
    +/******
    /*******
    
  • Input

    1
    

    Output

    /
    
  • Input

    2
    

    Output

    +/
    /*
    
  • Input

    3
    

    Output

    ++/
    +/*
    /**
    
  • Input

    15
    

    Output

    ++++++++++++++/
    +++++++++++++/*
    ++++++++++++/**
    +++++++++++/***
    ++++++++++/****
    +++++++++/*****
    ++++++++/******
    +++++++/*******
    ++++++/********
    +++++/*********
    ++++/**********
    +++/***********
    ++/************
    +/*************
    /**************
    
  • Information
    Author
    Professorat de P1
    Language
    Catalan
    Official solutions
    C++
    User solutions
    C C++ Java Python