Question: Write it with C language Q1: Write a c program to check whether an integer is positive or negative (the user should input the number)?

 Write it with C language Q1: Write a c program tocheck whether an integer is positive or negative (the user should input

Write it with C language

Q1: Write a c program to check whether an integer is positive or negative (the user should input the number)? Sample Output: Enter a number: - 8 is a negative number Enter a number: 5 is a positive number Q2: Write a c program to reverse a number using While loop (the user should input the number)? Sample Output: Enter any number: 1234 Reverse of input number is: 4321 Q3: Write a c program to find largest of three numbers (the user should input the numbers) ? Sample Output: Enter value of num1, num2 and num3 : 3 4 8 Number3 is greatest Q4: Write a c program to find the prime numbers between two ranges (the user should input the two ranges)? Sample Output: Enter two range( input integer numbers only): 1 9 Prime numbers from 1 and 9 are: 2 3 5 7 Q5: Write a c program to find the sum of natural numbers using for loop (the user should input the number)? Sample Output: Enter the value of n(positive integer): 5 Sum of first 5 natural numbers is: 15

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!