Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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)?

image text in transcribedimage text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Web Database Development Step By Step

Authors: Jim Buyens

1st Edition

0735609667, 978-0735609662

More Books

Students also viewed these Databases questions

Question

3. What information do participants need?

Answered: 1 week ago