Posts by Erick • 29 points
2 posts
-
0
votes2
answers2358
viewsQ: Show only the last word of a string
The purpose of the program is to read a string, ex: read - Jose Da Silva print - Silva I mean, always print the last word of string. My logic was to read the string back to front, and upon finding…
-
0
votes2
answers99
viewsQ: Problem to remove space after line break
#include <stdio.h> int main (){ int x,y,i; scanf("%d",&x); scanf("%d",&y); if ((x<y)&&(x>1)&&(x<20)&&(y<10000)){ for (i=1;i<=x;i++){ printf("%d…