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
natita [175]
4 years ago
14

Write a script that prints the multiples of 7 between 0 and 100. Print one multiple per line and avoid printing any numbers that

aren't multiples of 7. Remember that 0 is also a multiple of 7.

Computers and Technology
1 answer:
Sedbober [7]4 years ago
8 0

Answer:

The program to this question can be described as follows:

Program:

#include <iostream> //defining header file

using namespace std;

int main() //defining main method

{

int x; //defining integer variable

for(x=0;x<=100;x++) //defining loop to count value from 0 to 100

{

   if(x%7==0) //check value is divisable by 7

   {

       cout<<x<<endl; //print value

   }

}

   return 0;

}

Output:

please find the attachment.

Explanation:

In the above code, an integer variable x is declared, which is used in the for loop, in this loop variable  "x" starts from 0 and ends when the value of x is less than and equal to 100.

  • Inside the loop an, if block is used that defines a condition that is (i%7==0), it will check, that the value is divided by 7.
  • In this loop, a print method is used, that prints its values.

You might be interested in
What includes two or more private, public, or community clouds, but each cloud remains separate and is only linked by technology
Ilya [14]

Answer:

hybrid cloud

Explanation:

hybrid cloud is a cloud environment that employs both public and private cloud services.

Hybrid cloud gives businesses more flexibility and greater efficiency in coverage due to its ability to move files between public and private cloud.

7 0
3 years ago
Device drivers perform the actual communication between physical devices and the operating system. Group of answer choices True
jeka94

Answer:

true

Explanation:

5 0
2 years ago
Why does temperature decrease with higher altitude?
Lelu [443]
It's B.

As you go up, the air thins out, meaning it is less dense. Since there are less molecules that can transfer heat, the temperature is lower.
4 0
4 years ago
Only people who have nitrotype answer this question!!!
grigory [225]

Answer:

Krampus 4k Nitrotype team- VVIXEN

3 0
3 years ago
Read 2 more answers
Write a c++ application that computes gross salary for Mr.A,given that during the interview session and before started work, it
Vesnalui [34]

Answer:

# include <iostream>

using namespace::std;

int main()

{   int hrs;

float hrly_rate= 47;

double net_Sl;

float t1;

float t2;

float t3;

float t4;

float t5;

double grss_Pay;

float bons;

   cout<<"Enter number of hours worked";

   cin>>hrs;

   net_Sl= 47 * 387;

       t1 = (4.7 * net_Sl)/100;

       t2= 87;

       t3=(3.7 * net_Sl)/100;

       t4=3;

       t5=(0.47 * net_Sl)/100;

       grss_Pay= net_Sl- t1 - t2 -t3 - t4 - t5;

       float tmp=grss_Pay;                  

       double in_hnd;

       if (grss_Pay<10)

       {

           bons= (5 * grss_Pay)/100;

           in_hnd=grss_Pay+bons;

           grss_Pay=grss_Pay-grss_Pay;

       }

       else if (grss_Pay>10 ||grss_Pay<500)

       { bons= (10 * grss_Pay)/100;

         tmp=grss_Pay-grss_Pay;

         in_hnd=in_hnd+bons;

       }

       else if (grss_Pay>500|| grss_Pay<1000)

       { bons= 500;

         grss_Pay=grss_Pay-grss_Pay;

         in_hnd=in_hnd+bons;

       }

       else if (grss_Pay>1000 || grss_Pay<=2000)

       { bons= 600;

         grss_Pay=grss_Pay-grss_Pay;

         in_hnd=in_hnd+bons;

       }

       else if (grss_Pay>2000)

       { bons= (5 * grss_Pay)/100;

         grss_Pay=grss_Pay-grss_Pay;

         in_hnd=in_hnd+bons;

       }

        cout<<"Final Salary"<<in_hnd;

        return 0;

}

Explanation:

Please check the answer section.

4 0
3 years ago
Other questions:
  • What is alphabet symmetry
    12·2 answers
  • Jeremy, a college student, is preparing to give a speech on "Social Responsibilities." He refers to a Web page on a tab using
    10·1 answer
  • The presentation ____ determines the formatting characteristics of fonts and colors.
    11·2 answers
  • Make a program (C++). Sum of a 4 digits number and eliminating last digitsȘ
    13·1 answer
  • (ACCESS 2016)
    7·2 answers
  • Write a switch statement that tests the value of the char variable response and performs the following actions: if response is y
    9·1 answer
  • What is Identity Theft?
    8·1 answer
  • Ang Kabihasnang ito ay umusbong sa rehiyon ng Timog Mexico
    6·1 answer
  • What are the common uses of joysticks? ​
    12·1 answer
  • Python Coding:
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!