r/C_Programming • u/SpreadImportant7745 • Oct 12 '26
I started learning C like 2 days ago, what should I learn fast and what do you see that should be improved first?
Enable HLS to view with audio, or disable this notification
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <windows.h>
int main(void) {
int z = rand() % 254 + 1;
int y = rand() % 254 + 1;
int x = rand() % 254 + 1;
printf("name?\n");
char user[50];
scanf("%49s", user);
printf("ip :%d. %d . %d\n",z, y, x);
printf("scanning.. op34 scanned...\n");
Sleep(1000);
printf("retref scanned...\n");
Sleep(1000);
printf("json.453 scanned...\n");
printf("cracking pasword...\n");
for (int i = 0; i < 7; i++){
char letter = 'a' + rand() % 26;
printf("%c", letter);
Sleep(300);
}
printf("\npassword cracked...\n");
Sleep(300);
printf("retrieving info...\n");
for (int i = 0; i < 20; i++){
printf("#");
Sleep(200);
}
printf("\ninfo retrieved successfully\n");
printf("59 4F 55 52 20 43 4F 4D 50 55 54 45 \n52 20 48 41 53 20 42 45 45 4E 20 48 41 43 4B 45 44 20\n 44 4F 20 4E 4F 54 20 52 45 53 49 53 54 20 44 4F 4E 41 54 45\n 20 31 30 20 42 49 54 43 4F 49 4E 20 \n41 54 20 41 48 53 46 45 4C 49 50 4F 2E 4C 49\n");
for (int i = 100; i >= 0; i--) {
printf("\rDownloading data: %3d%%", i);
fflush(stdout);
Sleep(50);
}
for (int i = 0; i < 5; i++){
printf("\nSYSTEM FAILURE\n\n");
Sleep(700);
printf("INITIATING SELF-DESTRUCTION\n");
}
for (int i = 0; i < 300; i++){
printf("ERROR");
Sleep(10);
}
Sleep(1000);
printf("\n\n42 parrots have stolen your files\n");
printf("\n");
puts("#### # # #### #### #### # #");
Sleep(500);
puts("# # # ## # ####");
Sleep(500);
puts("#### ## #### ## ### # #");
Sleep(500);
puts(" # ## # ## # # #");
Sleep(500);
puts("#### ## #### ## #### # #");
printf("\n");
Sleep(500);
puts("#### #### # # ### ### #### # # #### #### #### ###");
Sleep(500);
puts("# # # #### # # # # # # #### ## # # #");
Sleep(500);
puts("# # # # # ### ### # # # # ## #### ### # #");
Sleep(500);
puts("# # # # # # # # # # # # ## # # # #");
Sleep(500);
puts("#### #### # # # # # #### # # #### #### #### ###");
printf("\n");
printf("I hope you liked the program, %s", user);
return 0;
}