"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
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
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
Social Sciences,
3 months ago
Economy,
3 months ago
Science,
7 months ago
Math,
7 months ago
Physics,
11 months ago