diff asciicaesar.c @ 2:c96b197faa9d default tip

Autmatic Win32 Porting
author VilyaemKenyaz
date Thu, 28 Sep 2023 13:20:40 -0400
parents d0fbe0f50dfb
children
line wrap: on
line diff
--- a/asciicaesar.c	Wed Aug 23 14:10:27 2023 -0400
+++ b/asciicaesar.c	Thu Sep 28 13:20:40 2023 -0400
@@ -5,12 +5,12 @@
 #include <string.h>
 
 void main(int argc, char*argv[]){
-char *string = argv[1];
-int modifier = atoi(argv[2]);
-char newchar;
-for(int i = 0;i != strlen(string);i++){
-newchar = string[i] + modifier;
-printf("%c",newchar);
+	char *string = argv[1];
+	int modifier = atoi(argv[2]);
+	char newchar;
+	for(int i = 0;i != strlen(string);i++){
+		newchar = string[i] + modifier;
+		printf("%c",newchar);
+	}
+	exit(0);
 }
-exit(0);
-}