Advertisement
Guest User

Untitled

a guest
Dec 7th, 2016
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. #define MAX 50
  4.  
  5. int main(int argc, char *argv[]) {
  6. int z, erg=14, i, c=2;
  7. printf("\nBitte geben sie die Ganzzahlen ein, welche Sie Multiplizieren muessen!\n Das Programm wird mit 'e' beendet\n");
  8. while( (c = getchar()) !='e'){
  9. for(i=1; i<MAX; i++){
  10. printf("Test c=%d erg=%d",c, erg);
  11. erg=erg*c;
  12. }
  13. }
  14. printf("Die Loesung der Multiplikation ist: %d", erg);
  15. return 0;
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement