Skip to content

Instantly share code, notes, and snippets.

@juanfal
juanfal / 12.wineGlass.cpp
Created October 15, 2024 12:57
glass of wine
// 12.wineGlass.cpp
// juanfc 2024-10-15
//
//
// Enter the half of the width (0 ends): 5
//
// ***********
// *********
// *******
// *****
@juanfal
juanfal / 11.emptyRhombus.cpp
Created October 15, 2024 12:47
empty rhombus
// 11.emptyRhombus.cpp
// juanfc 2024-10-15
//
#include <iostream>
using namespace std;
int main()
{
int n = 3; // or cin >> n;
@juanfal
juanfal / 08.doublestaircase.cpp
Created October 15, 2024 12:40
double staircase
// 08.doublestaircase.cpp
// juanfc 2024-10-07
//
#include <iostream>
using namespace std;
int main()
{
int n = 6; // or cin >> n;
@juanfal
juanfal / 09.doubleWallBox.cpp
Created October 15, 2024 12:37
double wall box
// 09.doubleWallBox.cpp
// juanfc 2024-10-07
//
#include <iostream>
using namespace std;
int main()
{
int n = 6; // or cin >> n;
@juanfal
juanfal / 08.triangleContDigits.cpp
Created October 15, 2024 12:30
print continous counter
// 08.triangleContDigits.cpp
// juanfc 2024-10-07
//
#include <iostream>
using namespace std;
int main()
{
int gCounter = 1;
@juanfal
juanfal / 07.triangleDigits.cpp
Created October 15, 2024 12:28
triangle of digits
// 07.triangleDigits.cpp
// juanfc 2024-10-07
//
#include <iostream>
using namespace std;
int main()
{
int n = 12; // or cin >> n;
@juanfal
juanfal / 06.stairs.cpp
Created October 15, 2024 12:24
print stairs
// 06.stairs.cpp
// juanfc 2024-10-07
//
#include <iostream>
using namespace std;
int main()
{
int n = 5; // or cin >> n;
@juanfal
juanfal / 05.printemptybox.cpp
Created October 15, 2024 12:23
print empty box
// 05.printemptybox.cpp
// juanfc 2024-10-07
//
#include <iostream>
using namespace std;
int main()
{
int n = 5; // or cin >> n;
@juanfal
juanfal / 04.printfullbox.cpp
Created October 15, 2024 12:22
print full box
// 04.printfullbox.cpp
// juanfc 2024-10-07
//
#include <iostream>
using namespace std;
int main()
{
int n = 5; // or cin >> n;
@juanfal
juanfal / 01.printcharrep.cpp
Created October 15, 2024 12:20
print char rep
// 01.printcharrep.cpp
// juanfc 2024-10-07
//
#include <iostream>
using namespace std;
int main()
{
int n = 5; // or cin >> n;