answersLogoWhite

0


Best Answer

Poor Boy.

We do not do your homework here.

User Avatar

Wiki User

11y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

9y ago

Reference: cprogramming-bd.com/c_page3.aspx#for%20loop

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How do you write a c program sum of ALL Numbers in the Given Range using for loop?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

How do you write a program to read set of numbers using by an array and display the ascending order of the given input numbers?

To write a C++ program to display the student details using class and array of object.


Write a program large number and small number among n numbers by using If statement?

12


What is program in c to swap entered two numbers without using third variable?

The required c program is given below /*Swapping(interchange) the two entered numbers*/ #include<stdio.h> main() { /*Without using third variable*/ int a,b,t; printf("Enter a:"); scanf("%d",&a); printf("Enter b:"); scanf("%d",&b); a=a+b; b=a-b; a=a-b; printf("\n After swapping without using third variable"); printf("\na=%d\nb=%d",a,b); }


Write a program to aceept 5 numbers from keyboard n print itz total?

Sure! Here's a simple Python program that allows the user to input 5 numbers and then calculates and prints their total: numbers = [] for i in range(5): num = int(input("Enter a number: ")) numbers.append(num) total = sum(numbers) print("The total is:", total) This program prompts the user to enter a number 5 times, converts each input to an integer, stores them in a list, calculates the sum of the numbers using the sum() function, and finally prints the total.


How can you accept sum and print numbers without creating variables?

It is very easy. The program begins here..... /*Program to sum and print numbers without creating variables*/ #include<stdio.h> main() { clrscr(); printf("%d+%d=%d",5,2,5+2); getch(); } /*Program ends here*/ Now just by changing the numbers in the "printf" statement we can add, subtract, multiply and divide the numbers without using variables. Hence the problem is solved..........

Related questions

How do you write a program to read set of numbers using by an array and display the ascending order of the given input numbers?

To write a C++ program to display the student details using class and array of object.


How do you write a program to find out the percentage of given numbers using the structure in C?

Count all the given numbers then count all the numbers of a given value. Divide one by the other and multiply by 100. For instance, if there are 50 numbers in total and 5 of them have the value 42, then the percentage of numbers with the value 42 is 5 / 50 * 100 = 10%.


How to write a C program to find largest 2 numbers using pointers?

program to find maximum of two numbers using pointers


Program to count the number of numbers in an array using 8085 microprocessor?

A program which is used to count the number of numbers in an array using a 8085 microprocessor is known as a assembly language program.


What is the range of numbers that can be represented using 7-bit signed binary number?

range iS given by -{2^(k-1) - 1 } to +{2^(k-1)-1} So putting k=7 range i from -63 to +63


What is the range of numbers using 14 and 3?

11


What is the gcf by given pairs of numbers by using continuous division of 48 56 64 and 72?

The GCF of the given numbers is 8


How do you write an assembly language program to find the sum of n numbers using array?

write an assembly language program to find sum of N numbers


How do you make an average using given numbers?

add them all together and then divide the answer by the number of numbers.


What is the difference between a solution set and replacement set?

The replacement set is given in the problem and is the domain for the problem (these numbers are used to replace x). The solution set are numbers calculated from the problem and is the range (these are y values that are answers from using the equation).


Program for finding the factorial of the two given number using constructor?

kjhk


How would you make a comparison using percents?

by simplifying the given numbers