Computer ISC Project
Computer ISC Project
1 2 5 8
1 2 5 1
1 2 1 2
1 1 2 5
Test your program for the following data and some random data:
Example 1
INPUT:
N=3
ENTER ELEMENTS OF SINGLE DIMENSIONAL ARRAY: 3 1 7
OUTPUT:
SORTED ARRAY: 1 3 7
FILLED MATRIX
1 3 7
1 3 1
1 1 3
Page | 49
PROGRAM 24-
Write a program to accept a sentence which may be terminated by either ‘.’ or ‘?’
only. The words are to be separated by a single blank space. Print an error
message if the input does not terminate with ‘.’ or ‘?’. You can assume that no
word in the sentence exceeds 15 characters, so that you get a proper formatted
output.
Page | 151