Question

in C programming, make a coubter using a for loop that counts doen from 200 to...

in C programming, make a coubter using a for loop that counts doen from 200 to 0

Homework Answers

Answer #1
#include<stdio.h>
int main() {
   int counter;
   for(counter=200;counter>=0;counter--){
       printf("%d ",counter);
   }
   return 0;
}

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
Using loop logic in a python code snippet, create a loop that counts down from 15...
Using loop logic in a python code snippet, create a loop that counts down from 15 to 5 by 3's printing the count as it is processing. example output: Counter Example count =  15 count =  10 count =  5
Assignment Content You recently graduated from college and are applying for a programming job that requires...
Assignment Content You recently graduated from college and are applying for a programming job that requires the understanding of loops in Python. The manager you are interviewing with has asked you to take an assessment to prove your programming knowledge. Below are the requirements for the programming skills test. In Python, create a program that meets the following requirements: Take two integers from the user. Save the lower number as x. Save the largest integer as y. Write a loop...
In C programming language please. -Construct a program that will make use of user defined functions,...
In C programming language please. -Construct a program that will make use of user defined functions, the do/while loop, the for loop and selection. -Using a do/while loop, your program will ask/prompt the user to enter in a positive value representing the number of values they wish to have processed by the program or a value to quit/exit. -If the user enters in a 0 or negative number the program should exit with a message to the user indicating they...
JAVA PROGRAMMING: Write an input validation loop (i.e. a loop that checks to see whether the...
JAVA PROGRAMMING: Write an input validation loop (i.e. a loop that checks to see whether the input received from the user is valid) that asks the user to enter the word “yes” or “no”.
using java LO: (Analyze) Students will fix a loop that runs forever. This program runs the...
using java LO: (Analyze) Students will fix a loop that runs forever. This program runs the countdown sequence for a rocket launch. However, it seems to loop infinitely. Fix the program so it counts down and terminates properly. starter code : import java.util.Scanner; /* * Counts down to a blastoff, starting from a given number. */ public class Countdown {    public static void main(String[] args) {        Scanner sc = new Scanner(System.in);        int countdown = 0;...
Inside a for loop from 200 to 225 inclusive(includes both 200 and 225 values for even...
Inside a for loop from 200 to 225 inclusive(includes both 200 and 225 values for even or odd), determine if each value is even or odd, like 1 is odd and 10 is even. Use a Boolean variable like boolean myflag=true Print out even or odd based on the boolean flag. Use Modulo arithmetic (remainder) to determine if the value is even or odd. C++uses the % character. Divide the number (r in your loop counter) by 2 If the...
In C++ programming language 1.) a.) write example of using getline() to read from file b.)...
In C++ programming language 1.) a.) write example of using getline() to read from file b.) write examples of pointers and arrays
Using a for Loop visual c++ Summary In this lab the completed program should print the...
Using a for Loop visual c++ Summary In this lab the completed program should print the numbers 0 through 10, along with their values multiplied by 2 and by 10. You should accomplish this using a for loop instead of a counter-controlled while loop. Instructions Write a for loop that uses the loop control variable to take on the values 0 through 10. In the body of the loop, multiply the value of the loop control variable by 2 and...
(This is for Java) For this I need to make a loop that will sum the...
(This is for Java) For this I need to make a loop that will sum the numbers from 3 to 22 public class Practice25 {    public static void main (String [] args) {            int sum = 0;           //The loop will go here      sum += i;     System.out.println ("Sum from 3 to 22 is: " + sum);    } }
Write the C++ code using nested for loops that prints the product of the outer loop...
Write the C++ code using nested for loops that prints the product of the outer loop counter and the inner loop counter; one per line. The outer loop counter should go from 1 to 8 and the inner loop counter should go from the value of the outer loop counter to 10. Both counters should increment by 1. Use outer for the outer loop counter and inner for the inner loop counter.
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT