Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- /* run this program using the console pauser or add your own getch, system("pause") or input loop */
- int main(int argc, char *argv[]) {
- int eingabe;
- printf ("1, 2 oder 3: ");
- scanf("%d", &eingabe);
- if (eingabe == 1) {
- printf("1 wurde gedrueckt");
- }
- else if (eingabe == 2) {
- printf("2 wurde gedrueckt");
- }
- else if (eingabe == 3) {
- printf("3 wurde gedrueckt");
- }
- else {
- printf("Irgendwas wurde gedrueckt");
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement