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
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;}
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