I've figured out a much simpler way to do this
#include
int main(void)
{
int num = 1;
int sum1 = 0, odd = 0;
int sum2 = 0, even = 0;
Type: Posts; User: fallenangel1331; Keyword(s):
I've figured out a much simpler way to do this
#include
int main(void)
{
int num = 1;
int sum1 = 0, odd = 0;
int sum2 = 0, even = 0;
I've figured out the opening loop (num[index - 1] != 0) but the arrays for the even/odd ints still doesn't work.
Here's the updated code
#include <stdio.h>
int main(void)
{
int...
Heres the problem: Write a program that reads integers until 0 is entered. After input terminates, the program should report the total number of even integers (excluding the 0) entered, the average...
Thank you very much Muthupandi_s it worked great. I really apriciate it. It works great.
Heres the problem i have: Write a program that reads in a line of input and then prints the line out in reverse order. Recall that you can use scanf() with the %c specifier to read one character at a...