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
Alice is adding a chart in a spreadsheet. Which option will allow her to give the chart a suitable title and subtitle?
jek_recluse [69]
It's D.Chart elements 
6 0
3 years ago
Read 2 more answers
Which topology requires a multipoint connection?
Nina [5.8K]
It's C) Bus Bus topology requires a multipoint connection
5 0
4 years ago
Privilege escalation is an​
olga55 [171]

Answer:

Privilege escalation is the act of exploiting a bug, design flaw or configuration oversight in an operating system or software application to gain elevated access to resources that are normally protected from an application or user.

Explanation:

give brainiest plzlz

7 0
3 years ago
What’s let’s you see your mouse on the screen in order to click icons, buttons , and menus
tatyana61 [14]

Answer: Easy one.

Explanation:

This would be the OS. The OS has a mouse cursor for you to use in Windows, and Linux, it's the same thing for some BIOS'es aswell, and this goes for setting up Windows, or Linux off of a flash drive or CD.

7 0
3 years ago
A user is troubleshooting a mobile device app that is displaying errors and has contacted the app manufacturer’s technical suppo
sammy [17]

Answer:

D. The method for retrieval is dependent on the specific app or device’s operating system.

4 0
2 years ago
Other questions:
  • If Maya wants to access a view that would control multiple slides within a presentation, which view should she utilize? Master v
    9·1 answer
  • What's the keyboard command that will allow you to "copy" text?
    6·2 answers
  • Is something wrong with Brainly?
    5·2 answers
  • Write two scnr.nextInt statements to get input values into birthMonth and birthYear. Then write a statement to output the month,
    10·1 answer
  • Please help with attached file
    8·2 answers
  • I need help, help me please ..​
    11·1 answer
  • Looking at the response vehicles (pictured above), explain two options you have in order to abide by the Move Over law,
    6·2 answers
  • Pls help now the question is very hard someone help me pls​
    6·1 answer
  • How do you hack a iPhone, Like If you forgot your password and want to get back in your phone. What do you do?
    7·2 answers
  • SOMEONE HELP ME!!!!!
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!