Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int nx,
- ng, // Всего групп по 7 книг
- no; // остаток от групп из 7 книг
- ///////////////////////////////////////////
- int main() //
- {
- printf("Enter count of books: "); scanf("%d", &nx);
- printf("nx = %d\n", nx);
- ng = nx / 7;
- no = nx % 7;
- printf("ng = %d\n", ng);
- printf("no = %d\n", no);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement