C programming exam questions

Post A Question

Classifications:

exam questions Categories:

Write a C program that prints all even numbers between 1 and 50 (inclusive)
icon 1 answers
icon507 Views
icon0 Likes
Write a C program that read 5 numbers and counts the number of positive numbers and negative numbers
icon 1 answers
icon517 Views
icon0 Likes
Write a C program that read 5 numbers and counts the number of positive numbers and print the average of all positive values
icon 1 answers
icon479 Views
icon0 Likes
Write a C program that read 5 numbers and sum of all odd values between them
icon 1 answers
icon399 Views
icon0 Likes
Write a C program to find and print the square of each one of the even values from 1 to a specified value
icon 1 answers
icon490 Views
icon0 Likes
Write a C program that reads an integer between 1 and 12 and print the month of the year in English
icon 1 answers
icon482 Views
icon0 Likes
Write a C program that reads two integers and checks whether they are multiplied or not
icon 1 answers
icon345 Views
icon0 Likes
Write a C program that reads three floating values and check if it is possible to make a triangle with them. Also calculate the perimeter of the triangle if the said values are valid
icon 1 answers
icon448 Views
icon0 Likes
Write a C program that read 5 numbers and sum of all odd values between them
icon 1 answers
icon483 Views
icon0 Likes
Write a C program that reads an integer and check the specified range where it belongs. Print an error message if the number is negative and greater than 80
icon 1 answers
icon421 Views
icon0 Likes
Write a C program to print the roots of Bhaskara’s formula from the given three floating numbers. Display a message if it is not possible to find the roots
icon 1 answers
icon744 Views
icon0 Likes
Write a C program that accepts 4 integers p, q, r, s from the user where q, r and s are positive and p is even. If q is greater than r and s is greater than p and if the sum of r and s is greater than the sum of p and q print "Correct values", otherwise print "Wrong values"
icon 1 answers
icon414 Views
icon0 Likes
Write a C program to convert a given integer (in days) to years, months and days, assumes that all months have 30 days and all years have 365 days
icon 1 answers
icon365 Views
icon1 Likes