Educational Updates

10th Class Computer Science Important Programs as Long Question No. 7

10th Class Computer Science Important Programs as Long Question No. 7

Write a Program In C language:

  1. That takes two numbers and find maximum number.
  2. That takes two numbers and find smallest number.
  3. That takes the percentage/marks of student as an input and display “PASS” if the percentage is above 50 Otherwise “FAIL”.
  4. Takes number and decide whether it is positive or negative.
  5. Takes year as input and display “Leap year” if the input year is leap year. Leap year are divisible by 4.
    That takes a number and find whether it is even or odd using simple if statement.
  6. Takes a character from user and display whether a given character is “DIGIT” or “NOT DIGIT”.
  7. Takes age of the person and print “Teenager” if the age between 13 and 19.

Majid Farooq

Content Writer and blogger

Leave a Reply

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

Back to top button