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
lina2011 [118]
2 years ago
6

C code

Computers and Technology
1 answer:
s2008m [1.1K]2 years ago
7 0

Answer:

for(currentRow=1; currentRow<=numRows; currentRow++) {

 for(currentColumn=0; currentColumn<numColumns; currentColumn++) {

   printf("%d%c ", currentRow, 'A'+currentColumn);

 }

}

Explanation:

By treating the column as a character, you can create the correct letter by adding 'A' to the column number (starting at 0). That way, you don't need the currentColumnLetter.

Of course this breaks if you have more columns than there are alphabet letters.

You might be interested in
Sally is editing her science report about living things. She needs to copy a paragraph from her original report. Order the steps
Gemiola [76]
First, Sally needs to highlight the report by holding down the left click button on her cursor/mouse. Then she will right click with her cursor and click “Copy”. Then, Sally will go to the empty document and right click again. This time she will press “Paste” and the report will appear on the empty document.
4 0
4 years ago
PLEASE I NEED HELP ASAP PLEASE PLEASE!!!
aniked [119]

Answer:

Following are the program in the Python Programming Language

#set variables to 0

positive_sum=0  

negative_sum=0  

#print message  

print("Enter 0 to terminate")  

#set the while loop  

while(True):  

#get input from the user  

num=float(input("Enter positive or negative numbers: "))  

#set if statement to check condition  

if(num==0):  

  break  

elif(num>0):  

  positive_sum+=num  

else:  

  negative_sum+=num  

#print output with message  

print()  

print("sum of positive numbers: ", positive_sum)  

print("sum of negative numbers: ", negative_sum)  

Output:  

Enter 0 to terminate  

Enter positive or negative numbers: 1  

Enter positive or negative numbers: 3  

Enter positive or negative numbers: 5  

Enter positive or negative numbers: -7  

Enter positive or negative numbers: -2Enter positive or negative numbers: 0  

sum of positive numbers:  9.0  

sum of negative numbers:  -9.0

Explanation:

Here, we set two integer data type variables "positive_sum", "negative_sum" and initialize to 0.

Then, we set the while infinite loop inside the loop.

Set a variable "num" and get input from the user in it.

Set the if conditional statement and check condition the variable "num" is equal to 0 then, loop will terminate.

Set the elif statement and check condition the variable "num" is greater than 0 then, add that input and store in the variable "positive_sum"

Otherwise, add that input and store in the variable "negative_sum".

Finally, we print the output with the message.

8 0
2 years ago
The ________________________ is software that controls the internal operations of hardware, manages devices connected to the com
vichka [17]

Answer:

Operating system .    

Explanation:

The operating system provides the interaction between the computer system and the user. The main objective of the operating system to handle the input/output devices It also handles the memory.

The operating system program that controls the hardware operation also it  handling the machine-connected devices and allows the data to be stored in the computer.

8 0
3 years ago
Donna has entered a long, complex formula in cell B4 in one worksheet. She would like to use the same formula in a cell on anoth
liubo4ka [24]

The correct answer is choice B - copy and paste

A long and complex formula can easily be copied from one worksheet to another by using the copy and paste feature. You will need to place the cursor in the cell that you want to copy and then press control+C, use the copy icon, or right click and choose copy. To paste it to the new worksheet you can either use control+v, use the paste icon, or right click and choose paste.

6 0
3 years ago
Which of following computer program used to design invitation card
Likurg_2 [28]
The answer is A word processing. Word processing software is used for editing, formatting, and output of text.
4 0
3 years ago
Read 2 more answers
Other questions:
  • Create an application for a library and name it FineForOverdueBooks. TheMain() method asks the user to input the number of books
    9·1 answer
  • Text documents images audio clips and software applications are all examples of blank that are stored in files
    8·2 answers
  • Write a Program in C language using arrays:
    14·1 answer
  • Easy Bib and Cite This For Me are examples of online
    12·1 answer
  • Assignment 1 is to write a program that will write the lyrics to "X number of beers on the wall". Use only the main method. Prom
    11·1 answer
  • which of these variable declarations will the variable remain uninitialized unless it is explicitly initialized?1)Declaration of
    5·1 answer
  • If your organization hires a new employee, what would you do to create a user account in the Linux system and add the account to
    11·1 answer
  • Consider we have n pointers that need to be swizzled, and swizzling one point will take time t on average. Suppose that if we sw
    11·1 answer
  • Greedy Algorithm Design
    8·1 answer
  • Why do guys get jealous when u hangout with another guy that's not them
    6·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!