answersLogoWhite

0


Best Answer

#include

int main() {
int total = 0; int start = 1; int end = 10;

for(int i = start; i <= end; i++) {
if(i > 4) total++;
}


printf("%d numbers from %d to %d are greater than 4\n", total, start, end)
return 0;
}

User Avatar

Wiki User

14y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Write a simple program to find out how many of the numbers from 1 to 10 is greater than 4?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Mca vtu notes for 1st sem?

Write a simple program to find out how many of the numbers from 1 to 10 is greater than 4.


What r available site 4 download free assignment solution for mca 5th sem jan-09?

Write a simple program to find out how many of the numbers from 1 to 10 is greater than 4.


Write a program to accept 2 numbers and tell whether the product of the two number is equal to or greater than 1000?

C programm


write simple program to solve the following problems : add the following numbers = 10,222,99,999,74,532?

A+(B+C**3) (A-(+D+B/A+B)


Write a java program for sum of n numbers?

This is a very simple problem, alnost certainly a homework problem, and you should make an effort to answer it yourself.


Write a program in Lex to eliminate white space and collect numbers as a token?

write a lex program to delete space from the program


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


Shell program for gcd of three given numbers?

write a shell program for finding out gcd of three given numbers? write a shell program for finding out gcd of three given numbers? write a shell program for finding out gcd of three given numbers? check bellow link http://bashscript.blogspot.com/2009/08/gcd-of-more-than-two-numbers.html


How do you write a program in objective c numbers 1-100 prime numbers?

fdsgfhgdfhgdf


Could you Write a program for 8086 microprocessor that displays on the monitor the average of 2 numbers from an array?

How to write a program for mouse in microprocessor?


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

program to find maximum of two numbers using pointers


Write a program to add two 8 bit numbers in microprocessor 8051?

write it in 8085