Practice Real Company Assessment Patterns • Latest 2025–2026 Mock Tests

Programming Exercises

Create a program to reverse the words in a hardcoded sentence while keeping their order.

Medium

Problem Statement

Create a program to reverse the words in a hardcoded sentence while keeping their order.

Sample Input

Sentence: "C# programming is fun"

Sample Output

Reversed Sentence: #C gnimmargorp si nuf

Limits

Time: 2s · Memory: 256 MB

Code Editor
00:00
using System; class ReverseWords { static void Main() { // Reverse each word in the sentence } }
Log in or sign up to run or submit your code.Log inSign up
Input
Sentence: "C# programming is fun"
Expected Output
Reversed Sentence: #C gnimmargorp si nuf