Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main() {
- int alex;
- int katja;
- void exit( int exit_code );
- printf("Welche Note hatte noch mal Alex in Mathe?\n");
- scanf("%i", &alex);
- if (alex >= 7) {
- printf("\n Bitte beim nächsten mal ernst bleiben! \n");
- exit(1);
- }
- if (alex <= 0) {
- printf("\n Bitte beim nächsten mal ernst bleiben! \n");
- exit(1);
- }
- printf("\n Welche Note hatte Katja noch mal in Mathe? \n");
- scanf("%i", &katja);
- if (katja >= 7) {
- printf("\n Bitte beim nächsten mal ernst bleiben! \n");
- exit(1);
- }
- if (katja <= 0) {
- printf("\n Bitte beim nächsten mal ernst bleiben! \n");
- exit(1);
- }
- printf("\n Alex hat eine %i in Mathe. \n", alex);
- printf("\n Katja hat eine %i in Mathe. \n", katja);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement