Check The Programming Section
Write a program to take input the details of rainfall of three consecutive days as millimeters. Write the required code to find the average rainfall in millimeters. Source Code, Test Case
Write a program to calculate the simple interest SI as (PTR/100). Takes the required input as principal amount (P), period in years (T) and rate of interest (R). Source Code, Test Case
Write a program to convert hours in minutes. The number of hours must be taken as input from the user. Source Code, Test Case
Write a program to calculate the area and perimeter of a square and a rectangle. The sides of the square and rectangle must be given as input using a keyboard. Use the following formulas to calculate the perimeter and the area
Perimeter of the rectangle is P = 2 (l + w) and area of the rectangle can be calculated as A = w x l
Perimeter of the square is P = 4 x a and the area of the square is calculated as A = a x a
To calculate the area and perimeter of a square and a rectangle you must declare the required variables for this as area_rect and area_square. Declare two other variables to calculate the perimeter as peri_square and peri_rect. Then display their values using 2 printf() statements. Source Code, Test Case
Calculate the area and perimeter fo square and rectangle without using the variables peri_square, peri_rect and area_rect, area_square. Write the required code directly as expression inside printf(). Source Code
Write a program to take input of three integer numbers and calculate their squares and display the sum of their squares. Source Code, Test Case
Consider the maximum speed of a Van is 80 KM/hour. Write a program to calculate the required number of hours to cover a distance of 500 KM. Source Code
Write a program to take input your name and display it using printf() function.
Write a program to take input of two float numbers and save it against the name of num1 and num2. Write the required logic to interchange the values of num1 and num2. Source Code, Test Case
Write a program to calculate the total amount in rupees and details of notes must be initialised using assignment operator as 5 notes of rupees 100, 3 notes of rupees 50, and 20 notes of rupees 20. Source Code
Write a program to take input a 4 digit number and print its digits. Each line of output must print only one digit of the given input. Source Code, Test Case