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
DDD
asasas
Test1
Spring 2017 Project 2 v1.2
quadsort vs qsort
CO Assignment 1 Question 1
Finding type of triangle assignment
18BCE2182 ASSESS_1 Q1-8
a3
thread SleepWakeup and mutex