0% found this document useful (0 votes)
36 views3 pages

Write A Program To Relate Two Integers Using, or ?

The document contains 3 short code snippets and their outputs. The first takes in two integers and outputs which is greater or less than. The second takes in 3 values and outputs which is the greatest. The third takes in a single character and outputs if it is an alphabet, digit, or other graphical character.

Uploaded by

MikeKhel
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
36 views3 pages

Write A Program To Relate Two Integers Using, or ?

The document contains 3 short code snippets and their outputs. The first takes in two integers and outputs which is greater or less than. The second takes in 3 values and outputs which is the greatest. The third takes in a single character and outputs if it is an alphabet, digit, or other graphical character.

Uploaded by

MikeKhel
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 3

Write a program to relate two

integers using =, > or <?


Output:
Enter a Integers:
12 23
Result: 12 < 23

Write a program to calculate


greatest number using nested if?
Output:
Enter a Value of X, Y Z:
X = 23
Y = 24
Z = 25
Z = 25 is greatest

Write a program to check whether


a character is Alphabet or Digit or
Other Graphical Character?
Output:
Enter a Character:
A is an Alphabet
8 is a Digit
# is a Graphical Character

You might also like