Computer Science, asked by garywalter1221, 1 year ago

I
IN
IND
INDI
INDIA

Give the program of the following pattern

Answers

Answered by rishu569019
5
indian bro it is so simple

garywalter1221: wrong answer bro
garywalter1221: I'm talking about the source code
Answered by Sidyandex
4

The following pattern can be easily formed using the C language as follows.

#include<stdio.

h> #include<conio.

h> void main() { char s[]="india"; int i,j;

clrscr(); for(i=0;s[i];i++) { for(j=0;j<=i;j++) printf("%c",s[j]);

printf("\n"); } getch(); }.

The output of this program can be received as I IN IND INDI INDIA.

One by one, all the letters will get displayed by it because an incremental value is used in it for typing the letters of the word INDIA.

Similar questions