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
Dahasolnce [82]
3 years ago
6

Write a while statement that prints all even numbers between 1 and 100 to the screen.

Computers and Technology
1 answer:
Marrrta [24]3 years ago
8 0

Answer:

Following are the while loop in c language.

while(i<100)

   {

if(i%2==0)

{

printf("%d",i);

printf("\n");

}

++i;

 }

Explanation:

Following are the code in c language.

#include<stdio.h> // header file

int main() // main function

{

   int i=1; // variable declaration

   while(i<100) // check the condition between 1 to 100

   {

if(i%2==0) // check that number % 2 ==0

{

printf("%d,",i); // print the number

}

++i;

 }

   return 0;

}

Output:

2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42,44,46,48,50,52,54,56,58,60,62,64,66,68,70,72,74,76,78,80,82,84,86,88,90,92,94,96,98,

 

You might be interested in
Does the security burden fall primarily on the user? On
liubo4ka [24]

Answer:

yes and no because of the security

Explanation:

yes and no because of the security

6 0
3 years ago
Help me to write spaghetti stack function, please!!
Mariulka [41]
Pointer tree is here

7 0
3 years ago
Need help with 3.2 lesson practice questions (edhesive)​
Vinvika [58]

Answer:

<h2>Doesn't have a question</h2>

Explanation:

<h2 /><h2>THANK YOUU</h2>
7 0
3 years ago
True / False
artcher [175]

Answer: True

Explanation:

Embedded system processor are more powerful than general purpose processor because the embedded  processors are designed to work in a particular machine for which they get the right amount of RAM and hardware however general purpose processors are to work in every machine which makes them little slow in some machine as they do not get the proper hardware and RAM and have to cope with much more demanding situations.

7 0
4 years ago
A reason improper use of netiquette can be risky is that users can
GaryK [48]

Answer:

A) Become vulnerable to online harassment

Explanation:

From my understanding, Netiquette refers to talking to other people, and being rude to others isn't gonna get you very far

4 0
3 years ago
Read 2 more answers
Other questions:
  • You hear someone make the following comment: "A blueprint is a design for a house. A carpenter can use the blueprint to build th
    15·1 answer
  • The purpose of the img element's ________ attribute is to provide a method for a browser to display different images depending o
    7·1 answer
  • Kerrri uses a database file many time a day. To increase her productivity, she should___.
    15·1 answer
  • You are responsible for tech support at your company. You have been instructed to make certain that all desktops support file an
    15·1 answer
  • Technician A says that automotive engine blocks are usually classified by the number of cylinders the block. Technician B says t
    9·1 answer
  • For this exercise, you are given a phrase. Return the number of time the word “dog” appears in the phrase.
    7·1 answer
  • Describe the functions of ALU, resisters, CU, BIU, Cache and FPU.
    7·1 answer
  • A​ _______ variable is a variable that has a single numerical​ value, determined by​ chance, for each outcome of a procedure.
    7·1 answer
  • We write programs as a sequence of operation. they flow through the computer as?
    11·1 answer
  • What was originally called "shareware"
    9·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!