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
soldi70 [24.7K]
3 years ago
7

Write a loop to store the letters “f” through “w” in an array named letters. Then, print the contents of the array to the screen

.
Computers and Technology
1 answer:
Luda [366]3 years ago
7 0

Answer:

#include<iostream>

#include<conio.h>

using namespace std;

main()

{

 

char a[18];

 

int k=102;

for (int j=0; j<18; j++)

{

a[j]=k;  

k=k+1;

 

}

 

cout<<"The Array of characters between f and W is Given below"<<endl;

for (int l=0;l<18;l++)

{

 cout<<a[l]<<endl;

}

getch();  

}

Explanation:

In this program, list of characters has been printed between f and w using for loop as per requirement. An array has been taken with name a and size 18, as there are 18 elements from f to w. As we know that ASCII code of Small f is 102 in decimal, we store that in another variable k. Start loop  and assign ASCII code of each alphabet using 'k' variable to array a. After that array of assigned alphabets has been printed.

You might be interested in
Complete the sentence.
mamaluj [8]

Answer:

We need context, it could be several answers

Explanation:

4 0
4 years ago
What substance was the first photograph made from?
dybincka [34]

Answer:

bitumen

Explanation:

5 0
4 years ago
Why did it take hundreds
levacccp [35]
Before that there was no way for the image to be recorded and fixed on a surface
5 0
3 years ago
Mezcla de una señal con otra para facilitar su transporte o transmisión.
Brrunno [24]

Answer:

telecomunicaciones

Explanation:

6 0
4 years ago
Yes, because it allows many users to get together and work to help project their services.
gregori [183]
Whats the question lmaoooooooooooooooooooooo
7 0
4 years ago
Other questions:
  • Where does the VLookup function find its lookup values?
    14·1 answer
  • which one of these steps describe saving a newly created file. click on the save icon. minimize the file. name the file. select
    12·2 answers
  • IT professionals should help to protect users’ personal information, such as bank account information or Social Security numbers
    14·1 answer
  • What does this mean??
    11·2 answers
  • What is the classification of the Gartner company?
    9·1 answer
  • RTOS stands for ______ Time Operating System.
    11·1 answer
  • Teenagers and their parents will never understand each other-the generation gap is too big. Its for my grade 11 English speech​
    10·2 answers
  • What is text formatting?​
    5·2 answers
  • Identify when programmers use an Else statement.
    15·2 answers
  • In this lab, you complete a C++ program that uses an array to store data for the village of Marengo.
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!