#include <stdio.h>
int main()
{
int N;
int temp;
int sum;
printf("Input a number: ");
scanf("%d", &N);
while (N % 4)
printf("a number is not divisible by 4!\n");
printf("Enter the number again:\n");
}
printf("Input %d numbers from 10 to 99: \n", N);
for (int i = 0; i < N; i++)
scanf("d", &temp);
if (temp < 10 || temp > 99) return 0;
sum += temp;
printf("sum of numbers: %d\n", sum);
printf("number of numbers: %d\n", N);
return 0;
#include <stdio.h>
int main()
{
int N;
int temp;
int sum;
printf("Input a number: ");
scanf("%d", &N);
while (N % 4)
{
printf("a number is not divisible by 4!\n");
printf("Enter the number again:\n");
scanf("%d", &N);
}
printf("Input %d numbers from 10 to 99: \n", N);
for (int i = 0; i < N; i++)
{
scanf("d", &temp);
if (temp < 10 || temp > 99) return 0;
sum += temp;
}
printf("sum of numbers: %d\n", sum);
printf("number of numbers: %d\n", N);
return 0;
}