Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Aufgabe 6
- #include<stdio.h>
- main()
- {
- int n1,n2, counter;
- printf("All numbers which divisible through 7\n");
- printf("First number: ");
- scanf("%d", &n1);
- printf("Second number: ");
- scanf("%d", &n2);
- if (n1 > n2) {
- printf("Wrong feed");
- } else {
- counter = n1;
- while (n2 > counter) {
- if ((counter % 7) == 0) {
- printf("%d\n", counter);
- }
- ++counter;
- } //End While
- }
- printf("Finish");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement