#Include Int Int While
#Include Int Int While
h>
int main()
{
int n=0, count=0, sum = 0;
while (n!=EOF)
{
printf("Input Integer:");
scanf_s("%d", &n);
sum = sum + n;
count = count + 1;
}//end of while
printf("The sum of integers entered is: %d\n", sum+1);
system("pause");
}
#include <stdio.h>
int main()
{
int n, c, temp;
do
{
printf("\n");
system("pause");
}
#include <stdio.h>
int main()
{
int a;
system("pause");
}
#include <stdio.h>
int main()
{
float g=0 ;
float m = 0, new = 0, average = 0;
int count = 0;
while (g != EOF)
{
printf("Enter the gallons used (-1 to end):\n ");
scanf_s("%d", &g);
printf("Enter the miles driven : \n ");
scanf_s("%d", &m);
new = m / g;
printf("The miles / gallons for this tank was %f \n ",new);
count = count + 1;
average = average +new;
}
printf("The overall average miles/gallons was %d\n", average / count);
system("pause");
}