UVA Solution 483 – Word Scramble – Solution in C, C++

UVA Onilne Judge Solution UVA-Volume 4

UVA Solution 483 – Word Scramble – Solution in C, C++ – Volume 4

UVA Online Judge Solution 483 – Word Scramble | Volume 4
UVA Problem Link – 483 – Word Scramble solve

Problem Name: 483 – Word Scramble solution
Problem Number : UVA – 483 – Word Scramble code
Online Judge : UVA Online Judge Solution
Volume: 4
Solution Language : C, C plus plus

UVA Online Judge Solution, UVA OJ Solution list, UVA Problems Solution, UVA solver, UVA all problem solution list

UVA Solution 483 – Word Scramble Code in C/CPP:

#include<stdio.h>
int main() {
char
s[1000];
while
(gets(s)) {
int
i, j;
int
st = -1, ed = -1;
for
(i = 0; s[i]; i++) {
if
(s[i] != ' ') {
st = i, ed = i;
while
(s[ed] != ' ' && s[ed] != '') ed++;
for
(j = ed-1; j >= st; j--)
printf("%c", s[j]);
i = ed-1;
}
else
printf(" ");
}

puts("");
}

return
0;
}

Tags: UVA Online Judge Solution, UVA OJ Solution list, UVA Problems Solution, UVA solver, UVA all problem solution list, UVA 483 code in C, UVA 483 – Word Scramble   code in C++, UVA 483 solution in C, UVA Word Scramble solution

Leave a Reply

Your email address will not be published. Required fields are marked *