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
kozerog [31]
4 years ago
7

Given an int variable k that has already been declared, write some code that uses a for loop to print a single line consisting o

f 97 asterisks. Use no variables other than k.
Computers and Technology
1 answer:
yawa3891 [41]4 years ago
6 0

Answer:

The program to the given statement can be defined as follows:

Program:

//header file

#include <stdio.h> //defining header file

int main() //defining main method

{

int k; //defining integer variable k

for (k=1;k<=97;k++) //defining for loop

{

printf("*"); //print value asterisks

}

return 0;

}

Output:

*************************************************************************************************

Explanation:

Firstly, the headers file is included in the above C-language, and then the main method is described and all computations are performed with this method, which can be described as follows:

  • Inside the main method, an integer variable k is declared.
  • In the next line, the for loop is declared, which uses the variable k, which starts from 1 and ends when the value of k is less than equal to 97, inside the loop, it will print asterisks.
You might be interested in
How would Microsoft Word inform you of the error in the sentence below? (Tip: The error is in bold.)
Artist 52 [7]
It's the second answer since there's not really an error for Microsoft Word to actually catch.
3 0
3 years ago
Name any two software programs that employees can use to communicate effectively ​
notka56 [123]

Answer

unified communication software or video conference.

Explanation:

4 0
2 years ago
What do the Sikh people wear on their head?
Mama L [17]

Answer:

Explanation:

It is called "Turban"

Sikhs wear the turban, to take care of the hair, promote equality, and preserve the Sikh identity

4 0
3 years ago
Read 2 more answers
Which key on the keyboard do you use when you copy using Drag and Drop? The Alt key. The Ctrl key. The Shift key. None of the ab
tamaranim1 [39]
CTRL key is used indeed
6 0
3 years ago
Read 2 more answers
1. Do you believe that films today are still art? Why or why not?
erastovalidia [21]
No because your not learning anything
6 0
3 years ago
Other questions:
  • Physical access, security bypass, and eavesdropping are examples of how access controls can be ________.
    15·1 answer
  • Tahir is setting up a message option before sending an e-mail to a colleague. He goes into the Properties dialog box and chooses
    5·1 answer
  • What is the advantage of saving a document as a PDF file?
    6·1 answer
  • For demultiplexing a UDP socket is identified by:_____.
    15·1 answer
  • What does the following code print?
    15·1 answer
  • Write a program in Cto define a structure Patient that has the following members
    12·1 answer
  • Which of the following correctly declares and initializes a Scanner object that will use input from the keyboard as its data sou
    13·2 answers
  • Midday is a good time to take a portrait outside.<br> true or false?
    8·1 answer
  • Is this a desktop or a computer, or are they the same thing
    12·1 answer
  • Who used the term" software" first?
    8·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!