Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- int main()
- {
- int i =1 , c=0 , sum=0 ,a , k=5;
- while(i <= 1000)
- {
- c=c+1;
- printf ("%d", i);
- printf("/%d = \n\n", k);
- sum = sum+a;
- k = k+5;
- a =i/k;
- i++;
- }
- printf("\nThe sum value are = %d\n", sum);
- printf("\nThe number of digits = %d", c);
- printf("\n\n");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement