File tree 1 file changed +3
-7
lines changed
1 file changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ int bigA(char* arr);
8
8
int main () {
9
9
10
10
11
- /** =========== Uppgifter 1-4 ===========* **/
11
+ /** =========== Uppgifter 1-4 =========== **/
12
12
13
13
/**
14
14
char str[] = "abcdefaaabce";
@@ -45,26 +45,22 @@ int main() {
45
45
return 0;
46
46
**/
47
47
48
- /**=========== Uppgifter 5-8 ===========**/
48
+ /** =========== Uppgifter 5-8 =========== **/
49
49
50
50
char arr [100 ] = {0 };
51
51
int i = 0 ;
52
52
int c ;
53
53
int counter = 0 ;
54
54
55
-
56
55
printer (stdin , arr , i , c );
57
56
58
-
59
-
60
57
while (arr [counter ] != '\0' ) {
61
58
if (arr [counter ] == 'a' ) {
62
59
arr [counter ] = 'A' ;
63
60
}
64
61
counter ++ ;
65
62
}
66
63
67
-
68
64
printf ("%s" , arr );
69
65
printf ("Length: %d\n" , counter - 1 );
70
66
@@ -80,7 +76,7 @@ int main() {
80
76
} while (i < 100 && c != EOF && c != '\n' );
81
77
82
78
printf ("%s" , arr );
83
- printf ("(%c)" , arr [j ]);
79
+ printf ("(%c)\n " , arr [j ]);
84
80
85
81
}
86
82
You can’t perform that action at this time.
0 commit comments