Computer Science, asked by shivaramcvm, 7 months ago

"HELLO"=String
for I in range(0,len(String)–1)
if String[I]=>"M":
print(String[I],"*")
Else:
print(String[I-1])

correct the errors

pls

i will mark brainlist

Answers

Answered by mansisehga
1

Answer:

char string[20]="HELLO"

for(int i=0;i<strlen(str)-1;i++)

{

if(string[i]>="M")

cout<<string[i]<<"*";

else

cout<<string[i-1];

}

Explanation:

Coding is in c++... There were syntax errors

Answered by kk301
0

Answer:

char string[20]="HELLO"

for(int i=0;i<strlen(str)-1;i++)

{

if(string[i]>="M")

cout<<string[i]<<"*";

else

cout<<string[i-1];

}

Explanation:

there were syntax errors

Language i dont know i have done so many languages i forgot

Similar questions