I have one last problem, the catch here is to not use arrays:
Here's the problem:
[spoiler]
Write a C program to prompt the user to enter five random integers from the keyboard and print only the even numbers. Also print the sum of the even numbers. The integers may be positive or negative.
[/spoiler]
My attempt:
Code:
#include<stdio.h>
#include<conio.h>
int main();
{
int a,b,c,d,e;
scanf("%d%d%d%d%d",a,b,c,d,e);
if (a%2==0)
p
.....
I'm lost from this point and just need some hints/help on what to do to store values that are even and display them in a loop, then add them.