MrDj200

Untitled

Nov 27th, 2015
185
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.56 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3. void main(void){
  4.  
  5.     int input, i;
  6.     double ii, changedInput;
  7.  
  8.     system("title FAKTOR");
  9.  
  10.     printf("Bitte eine Zahl eingeben! > ");
  11.     scanf("%i", &input);
  12.     printf("Die Zahl wird in Primfaktoren zerlegt...\n");
  13.     changedInput = input;
  14.  
  15.     for(i=2; changedInput != 1.0; i++){
  16.  
  17.         for(ii = 2; ii<10; ii++){
  18.  
  19.             if((changedInput/ii) == 1||2||3||4||5||6||7||8||9)    {
  20.                 printf("Hallo im if");
  21.                 system("pause");
  22.             }
  23.         }
  24.     }
  25.  
  26.     printf("%i = ", input);
  27.  
  28. }
Advertisement
Add Comment
Please, Sign In to add comment