0% found this document useful (0 votes)
90 views

Exercises Numbers WithoutSolutions

The document provides 10 programming problems ranging from checking if a number is positive or not, creating a basic calculator, finding the largest of three numbers, checking if two integers are equal, checking if an integer is less than or greater than 10, calculating the mean of several student grades, converting inches to centimeters, using quotient and remainder operators, checking if a year is a leap year, and calculating the factorial of a number.

Uploaded by

Adnan Halapa
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
90 views

Exercises Numbers WithoutSolutions

The document provides 10 programming problems ranging from checking if a number is positive or not, creating a basic calculator, finding the largest of three numbers, checking if two integers are equal, checking if an integer is less than or greater than 10, calculating the mean of several student grades, converting inches to centimeters, using quotient and remainder operators, checking if a year is a leap year, and calculating the factorial of a number.

Uploaded by

Adnan Halapa
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

1.

Write a program in C++ to check whether a given number is an positive


number or not.

2. Make a simple calculator

3. C++ Program to Find Largest Number Among Three Numbers

4. Write a C program to accept two integers and check whether they are
equal or not.

5. Create a program that asks the user to enter an integer. If the integer is
less than 10, print the message "This number is too small". If the integer
is greater than or equal to 10, print "This number is big enough".

6. Write a C++ program to get mean of the degrees of student ( Math = 80


, Science =67, Arabic= 65 , Studies= 88 , English = 56)

7. Write a C++ program to transfer inchs to centimeters (1 inch= 2.54


cintimeters)

8. Write a C++ Program to test quotient and remainder operators

9. C++ Programming Code to Check Leap Year or Not

10 .Find factorial of number

You might also like