Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- void main(void){
- int input, i;
- double ii, changedInput;
- system("title FAKTOR");
- printf("Bitte eine Zahl eingeben! > ");
- scanf("%i", &input);
- printf("Die Zahl wird in Primfaktoren zerlegt...\n");
- changedInput = input;
- for(i=2; changedInput != 1.0; i++){
- for(ii = 2; ii<10; ii++){
- if((changedInput/ii) == 1||2||3||4||5||6||7||8||9) {
- printf("Hallo im if");
- system("pause");
- }
- }
- }
- printf("%i = ", input);
- }
Advertisement
Add Comment
Please, Sign In to add comment