#include <stdio.h>
int main()
{
int num1,num2,num3;
printf("Vvedite 3 chisla cherez probel: ");
scanf("%d%d%d", &num1,&num2,&num3);
printf("Summa chisel: %d ", num1+num2+num3);
if ((num1+num2+num3) % 7 == 0)
printf(" kratna 7");
else
printf(" ne kratna 7");
return 0;
}
#include <stdio.h>
int main()
{
int num1,num2,num3;
printf("Vvedite 3 chisla cherez probel: ");
scanf("%d%d%d", &num1,&num2,&num3);
printf("Summa chisel: %d ", num1+num2+num3);
if ((num1+num2+num3) % 7 == 0)
printf(" kratna 7");
else
printf(" ne kratna 7");
return 0;
}