Monday, 24 July 2017
Write a C program to take a 5-digit number as input and calculate the sum of its digits
What's Related?

Write a C program that will ask the user to input a file name and copy the contents of that file into another file.

Write a C program to define a union Contact that will contain the members Mobile no and E-mail id. Now define a structure Employee that will contain name, UID,PhNo, emailId and a variable of type Contact as members. The program will ask the user to give the details of five Employees including contact details. Print the details of all the Employees.

Write a C program to define a structure Student that will contain the roll number, name and total marks of a student The program will ask the user to input the details of 5 students and print the details of all the students whose total marks is greater than a given value.

Write a C program to take 5 names as input and print the longest name.
Write a C program to take three sides of a triangle as input and verify whether the triangle is an isosceles, scalene or an equilateral triangle.
Write a C program to take the radius of a sphere as input and print the volume and surface area of that sphere
Home