Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
lab8part2final
//gcc 5.4.0 #include <stdio.h> int main(void) { char string[500]; char a; char replace; scanf("%s\n",string); scanf("%c\n",&a); scanf("%c\n",&replace); printf("%c %c %s\n",a, replace, string); for (int i=0;i<500;i++){ if (string[i]==a){ string[i]=replace; printf("%c",string[i]); } else{ printf("%c",string[i]); } } return 0; }
run
|
edit
|
history
|
help
0
2017_1117_TARTAGLIA
Sheldon 9 area none aliens as aliens and farms Lockheed Kelly and lame lead district 9
PJE
cstructCricPoint
TAREA M4- PERLAS TERMINADA
Name pipe
1
Project 4 v.6
CO Assignment 1 Question 2
función malloc()