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
MAXImum [283]
3 years ago
7

Write a program in which given an integer num, return the sum of the multiples of num between 1 and 100. For example, if num is

20, the returned value should be the sum of 20, 40, 60, 80, and 100, which is 300. If num is not positive, return 0.
Computers and Technology
1 answer:
zhuklara [117]3 years ago
5 0

Answer:

#include<iostream>

using namespace std;

int main()

{

  int num=0,sum=0;

  cout<<"Insert Number to find sum of mutiples.";

  cin>>num;

  int temp=num;

  if(num>0){

   sum+=num;

  while(num<100){

        num+=temp;

  sum+=num;

         

  }

  cout<<"Sum of Multiples is ="<<sum<<endl;

  }else{

  return 0;

  }

return 0;

}

Explanation:

This code is written in c++. Written by Saad-Ur-Rehman.

You might be interested in
What is a device that enables a spacecraft crew to exit from the spacecraft and launch tower in the event of a crisis before tak
algol [13]
i think its alternative escape strategy
6 0
3 years ago
What is a two content slide​
daser333 [38]

Answer:

Slide layouts define containers, positioning, and formatting for all of the content that appears on a slide. Placeholders are the containers in layouts that hold such content as text (including body text, bulleted lists, and titles), tables, charts, SmartArt graphics, movies, sounds, pictures, and clip art.

Explanation:

5 0
3 years ago
Manny has drafted an email message and configured a delivery option "Do not deliver before: 5:00 P.M. and today's date." He shut
erik [133]

In this scenario: C. the message will remain in Manny’s outbox until the computer is started and the Outlook program is started the next day.

<h3>What is Microsoft Outlook?</h3>

Microsoft Outlook simply refers to an e-mail and task management software application that is designed and developed by Microsoft Inc., so as to avail end users an ability to send electronic messages, schedule and plan their work activities on a timely basis.

Based on the time schedule, what would happen is that: C. the message will remain in Manny’s outbox until the computer is started and the Outlook program is started the next day.

Read more on Microsoft Outlook here: brainly.com/question/1538272

#SPJ1

7 0
2 years ago
Given an int variable n that has already been declared and initialized to a positive value, and another int variable j that has
stiks02 [169]

Answer:

The solution code is written in Java.

  1. public class Main {
  2.    public static void main(String[] args) {
  3.        int n = 5;
  4.        int j;
  5.        do{
  6.            System.out.print("*");
  7.            n--;
  8.        }while(n > 0);
  9.    }
  10. }

Explanation:

Firstly, declare the variable n and assign it with value 5 (Line 4). Next declare another variable j.

Next, we create a do while loop to print the n-number of asterisks in one line using print method. In each iteration one "*" will be printed and proceed to the next iteration to print another "*" till the end of the loop. This is important to decrement the n by one before the end of a loop (Line 9) to ensure the loop will only run for n times.

5 0
4 years ago
How do libraries let you write programs at a higher level? Why is testing important when building and sharing libraries?
Anna71 [15]

Answer:

libraries do this so that you dx chae

Explanation:

6 0
3 years ago
Other questions:
  • Write a function solution that returns an arbitrary integer which is greater than n.
    13·1 answer
  • In windows vista, which process allows you to display two documents side by side?
    12·2 answers
  • A _______ record is responsible for resolving an ip to a domain name.
    9·1 answer
  • Which key removes all data from an active cell with one click? A. Esc B. Delete C. Tab D. F2
    9·2 answers
  • Which is most harmful computer virus define​
    15·1 answer
  • In a large company today, you will often find an infrastructure that includes hundreds of small LANs linked to each other as wel
    7·1 answer
  • Why are computers assigned IP addresses
    15·1 answer
  • Cuando, Quien, Donde y Como empieza a funcionar Amazon?
    15·1 answer
  • What is the difference between an html opening tag and a closing tag?.
    7·1 answer
  • You are investigating a problem between two wireless bridges and you find that signal strength is lower than expected. Which of
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!