Ask a New Question

Question

how to write c++ program to compute to display natural number between 1 and 30 which are divisible by 12
9 years ago

Answers

Damon
I guess I would let n = 0 and y = 0

then I would say n = n+1

y = 12 * n

if y > 30 go to the end immediately and stop

then I would store and print y

go back to that n = n+1

stop and end

9 years ago

Related Questions

how do i write a program in python for an atm machine . Write a program which ask the user to enter a sentence (character by character) and when user pres... write a program that ask the student to enter an answer to a math problem. The user should enter two... How do I write a program with three inputs rectangle heights, width, and number of rectangles write a program C++ program and Use a recursive function that finds the n-th term using the followin... I am trying to write a program in C that would be used by a car rental company. This program finds t... Write a program that allows the user to enter a product code that consists of five or six characters... Write a C++ program that will accept the marks in a test for a group of 5 students 2. Write a program to let the user capture personal details : names, address, telephone, age, city,... Write a C++ program that uses 2 functions the first is to read an array of students’ grades and retu...
Ask a New Question
Archives Contact Us Privacy Policy Terms of Use