1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
ludmilkaskok [199]
3 years ago
12

Write a c++ program that prints the intial letter of any name​

Computers and Technology
1 answer:
Shalnov [3]3 years ago
6 0

Answer:

#include<iostream>

using namespace std;

int main(){

char str[20];

int i=0;

std::cout<<"Enter a name:" ;

cin>>str;

cout<<*str;

while(str[i]!='\0'){

if(str[i]==' '){

i++;

cin>>*(str+i);

}

i++;

}

return 0;

}

You might be interested in
What does this mean? And how did I get it?
Oliga [24]
If you’re talking about the rank then it just means your ambitious i guess and you got it by answering peoples questions
3 0
3 years ago
Read 2 more answers
Which is a safe practice when online
Kay [80]

Answer:

I don't know if there are choices but these are couple that i think would be right. Don't give out personal info, have a complex password and don't give it out to anyone, don't click on random pop up adds, and use a firewall

Explanation:

7 0
3 years ago
Read 2 more answers
How can you use the cash envelop system and the 50-30-20 rule at the same time
Amanda [17]

Answer:

hi

Explanation:

6 0
3 years ago
A/an ________________ is a type of java class that runs on a server and does the processing for the dynamic web pages of a web a
Nataly [62]

Answer:

The answer to this question is "Servlet".

Explanation:

In the above question, the correct answer is servlet because In java a set of pages that are generated by the response of the user is required the web application. In java programming language we did the backed coding like (Desktop GUI Applications, Embedded Systems, Web Applications, Web Server and Applications Server).

3 0
3 years ago
A<br> is an list of steps to complete a task. *
nlexa [21]

Explanation:

hope it helps

pls mark me brainliest thanks

4 0
3 years ago
Other questions:
  • This formatting option functions like a space bar. However, instead of moving one space at a time, it allows you to move your te
    6·1 answer
  • You support Richman Investments, a brokerage firm that employs 20 brokers. Each broker has his own client computer, and the firm
    15·1 answer
  • 1. Why was the Internet created?
    8·1 answer
  • in access, entering the search criteria "B?" would yield which of the following results? a. bentonville b. be c. brimingham d. b
    14·1 answer
  • What lever has resistance between the axis (fulcrum) and the force (effort)?
    10·2 answers
  • According to the computer science what isCD ROM is a ​
    8·1 answer
  • Software that uses signature-based detection contains a library of signatures of known _____?
    11·2 answers
  • Cache memory and RAM both are based on transistor based then why cache memory is needed if we already have RAM (Random Access Me
    6·1 answer
  • Released in 1976, the Apple I was Apple Computer's first product.<br><br> O True<br> O False
    6·1 answer
  • What combination of keys will autofill highlighted cells to the right?
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!