Computer Science, asked by saudkarim25, 4 months ago

Write a program to enter a string. print it out in following pattern. Eg- basic
BASIC
ASIC
SIC
IC
C
SOMEBODY PLS HELP ME IN THIS

Answers

Answered by Thorragnarok57
1

Explanation:

include <stdio.h>

include <stdio.h>int main() {

include <stdio.h>int main() { int i, j, rows;

include <stdio.h>int main() { int i, j, rows; printf("Enter the number of rows: ");

include <stdio.h>int main() { int i, j, rows; printf("Enter the number of rows: "); scanf("%d", &rows);

include <stdio.h>int main() { int i, j, rows; printf("Enter the number of rows: "); scanf("%d", &rows); for (i = 1; i <= rows; ++i) {

include <stdio.h>int main() { int i, j, rows; printf("Enter the number of rows: "); scanf("%d", &rows); for (i = 1; i <= rows; ++i) { for (j = 1; j <= i; ++j) {

include <stdio.h>int main() { int i, j, rows; printf("Enter the number of rows: "); scanf("%d", &rows); for (i = 1; i <= rows; ++i) { for (j = 1; j <= i; ++j) { printf("* ");

include <stdio.h>int main() { int i, j, rows; printf("Enter the number of rows: "); scanf("%d", &rows); for (i = 1; i <= rows; ++i) { for (j = 1; j <= i; ++j) { printf("* "); }

include <stdio.h>int main() { int i, j, rows; printf("Enter the number of rows: "); scanf("%d", &rows); for (i = 1; i <= rows; ++i) { for (j = 1; j <= i; ++j) { printf("* "); } printf("\n");

include <stdio.h>int main() { int i, j, rows; printf("Enter the number of rows: "); scanf("%d", &rows); for (i = 1; i <= rows; ++i) { for (j = 1; j <= i; ++j) { printf("* "); } printf("\n"); }

include <stdio.h>int main() { int i, j, rows; printf("Enter the number of rows: "); scanf("%d", &rows); for (i = 1; i <= rows; ++i) { for (j = 1; j <= i; ++j) { printf("* "); } printf("\n"); } return 0;

include <stdio.h>int main() { int i, j, rows; printf("Enter the number of rows: "); scanf("%d", &rows); for (i = 1; i <= rows; ++i) { for (j = 1; j <= i; ++j) { printf("* "); } printf("\n"); } return 0;}

Answered by Adityasharma9596
0

Answer:

Write a program to enter a string. print it out in following pattern. Eg- basic

BASIC

ASIC

SIC

IC

C

SOMEBODY PLS HELP ME IN THIS

Similar questions