include stdio include stdlib run this program using the console pauser

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
#include <stdio.h>
#include <stdlib.h>
/* run this program using the console pauser or add your own getch, system("pause") or input loop */
int main(void) {
int n;
printf("vvedite n\nn=");
scanf ("%d",&n);
while (n!=0)
{
if (fabs(n%10>=8)) {
printf ("ne 8naya ss\n");
return 0;
}
n/=10;}
printf ("8 nay ss");
return 0;
}