answersLogoWhite

0

//to calculate using while

#include<stdio.h>

#include<conio.h>

void main()

{ int count

float average,sum;

sum=0;

count=0;

while(count<N)

scanf("%f",n)

sum=sum+count

count=count+1

}

average=sum/n

User Avatar

Wiki User

12y ago

What else can I help you with?

Related Questions

Is it possible to make a program using for and not with while?

The following cases are all possible:- program without any for and while- program without for- program without while- program with both for and while


How do you write a c program to convert binary to decimal by using while statement?

write a c++ program to convert binary number to decimal number by using while statement


Where the data and program kept while the processor is using them?

In the RAM


What is the role of internal reporting system while using the loyalty program?

eleporo


C program algorithm for simple interest using while loop?

Not used


Write a program that will graph using for loop?

A = 5do{statement;A = A + 1;} while (A < 10)


How do you write a c program to print n no's required using while loop?

int i=0; while (i++&lt;n) { /*...*/ }


Using while loop write a program which calculates the product of digits from 1 to 5 and also show these nos vertically?

Using while loop, write a program which calculates the product of digits from 1 to 5 and also show these no's vertically.


Where can you find your word processor?

The Google word processor is one component of the Google Documents program. This program can be found on the Google website. The program gets average reviews and is recommended for people who only use word processing once in a while.


Skype headsets can be used for what purpose?

Skype headsets are hands-free devices that allow you to hear and talk into a microphone while using the Skype program. They are used to make the Skype users experience easier while doing other things and using the Skype program.


Write a program using while loop?

//program to find the factorial value f any number using while loop #include&lt;stdio.h&gt; void main() { int i,n,fact=1; printf("Enter the number\n"); scanf("%d",&amp;n); i=n; while (i&gt;=1) { fact=fact*i; i--; } printf("The factorial value=%d",fact); } the above is a program for calculating tha factorial value of any number which is entered by the user


Write a program in c language to diaplay the given integer in binary using while loop?

int num = 1245; //Number to display in binary int pos = log(1425.0f) / log(2.0f) + 1; //calculate # of binary digits while (--pos &gt;= 0) printf("%d", num &amp; (1 &lt;&lt; pos) ? 1 : 0); printf("\n");