C Programs

C Program that reads 5 numbers and counts the number of positive and negative numbers.

Input: Input the elements n : 5Input the elements n : -4Input the elements n : 9Input the elements n : -5Input the elements n...

C Program that prints all even numbers between 1 and 50.

Output: The even numbers between 1 to 50 are:2 4 6 8 10 12 14 16 18 20 22 24 26 28 30 32 34...

C Program that reads an integer between 1 and 12 and prints the month of the year.

Input1: Input a number between 1 - 12: 1 Output: January Input2: Input a number between 1 - 12: 13 Output: There does not exist any month

C Program to read an integer from the keyboard and check the specified range where it belongs.

Input1: Input an integer: 56 Output: Range Input2: Input an integer: 26 Output: Range Input3: Input an integer: 83 Output: Outside the range

C Program to print the roots of integers using Bhaskara’s formula.

Input1: Input the first number: 25Input the second number: 35Input the third number: 12 Output: Root1 = -0.600Root2 = -0.800 Input2: Input the first number: 0Input the second number:...

C Program that accepts 4 integers p, q, r, s from the user where r and s are positive and p is even. If...

Input1: Input the first integer: 15Input the second integer: 34Input the third integer: 24Input the fourth integer: 9 Output: WRONG VALUES Input2: Input the first integer: 2Input the second...

Recent Articles

Stay on op - Ge the daily news in your inbox

spot_img