#include<stdio.h>
void backslash_function(int n)
{
printf("Backslash Triangle:\n"); for(int i=1;i<=n;i++)
{
for(int j=0;j<i;j++)
{
}
}
}
void floyds_function(int n)
{
int a=1;
printf("Floyd's Triangle:\n"); for(int i=1;i<=n;i++)
{
for(int j=0;j<i;j++)
{
}
}
}
int main(){
int n=15;
backslash_function(n);
floyds_function(n);
return 0;
}
// Floyd's Triangle:
// 1
// 2 3
// 4 5 6
// 7 8 9 10
// 11 12 13 14 15
// 16 17 18 19 20 21
// 22 23 24 25 26 27 28
// 29 30 31 32 33 34 35 36
// 37 38 39 40 41 42 43 44 45
// 46 47 48 49 50 51 52 53 54 55
// 56 57 58 59 60 61 62 63 64 65 66
// 67 68 69 70 71 72 73 74 75 76 77 78
// 79 80 81 82 83 84 85 86 87 88 89 90 91
// 92 93 94 95 96 97 98 99 100 101 102 103 104 105
// 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120
I2luY2x1ZGU8c3RkaW8uaD4Kdm9pZCBiYWNrc2xhc2hfZnVuY3Rpb24oaW50IG4pCnsKICAgIHByaW50ZigiQmFja3NsYXNoIFRyaWFuZ2xlOlxuIik7CiAgICBmb3IoaW50IGk9MTtpPD1uO2krKykKICAgIHsKICAgICAgICBmb3IoaW50IGo9MDtqPGk7aisrKQogICAgICAgIHsKICAgICAgICAgICAgcHJpbnRmKCJcXCIpOwogICAgICAgIH0KICAgICAgICBwcmludGYoIlxuIik7CiAgICB9ICAgCn0gICAKCnZvaWQgZmxveWRzX2Z1bmN0aW9uKGludCBuKQp7CiAgICBpbnQgYT0xOwogICAgcHJpbnRmKCJGbG95ZCdzIFRyaWFuZ2xlOlxuIik7CiAgICBmb3IoaW50IGk9MTtpPD1uO2krKykKICAgIHsKICAgICAgICBmb3IoaW50IGo9MDtqPGk7aisrKQogICAgICAgIHsKICAgICAgICAgICAgcHJpbnRmKCIlZCAiLGErKyk7CiAgICAgICAgfQogICAgICAgIHByaW50ZigiXG4iKTsKICAgIH0gICAKfQoKaW50IG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