Advertisement
Guest User

Untitled

a guest
Jul 19th, 2019
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. int main()
  2. {
  3. char letra;
  4. char oracion;
  5.  
  6.  
  7. printf("Ingrese el caracter a buscar:n");
  8. letra=getchar();
  9. getchar();
  10.  
  11. printf("Ingrese la oracion:n");
  12. oracion=getchar();
  13. getchar();
  14.  
  15.  
  16. while(oracion!='.'){
  17. if(oracion==letra){
  18. oracion='+';
  19. printf("%c", oracion);
  20. }
  21. }
  22.  
  23.  
  24. return 0;
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement