diff --git a/Assignment2.c b/Assignment2.c index 6924883..4d205bf 100644 --- a/Assignment2.c +++ b/Assignment2.c @@ -2,6 +2,17 @@ int main() { + int num,a; + a=0; + printf("Enter number divisible by 8= "); + scanf("%d",&num); + while(num%8==0) + { + printf("\nEnter number divisible by 8="); + scanf("%d",&num); + a++; + } + printf("The number of valid numbers entered are %d",a); return 0; }