Assignments [ Assignment 1] - C Programming
ASSIGNMENT - 1
--------------------------
- Write a program to input a number and print it.
- Write a program to input two numbers and add them, then print the answer.
- Write a program to input two float values and find the sum of those values.
- Write a program to input a character and print that.
- Write a program to input a lowercased character and convert it into upper case.
- Write a program to input an uppercased character and convert into lowercase.
- Input two numbers and find addition, subtraction, multiplication, and division.
- Input two numbers and find the remainder which is obtained by dividing first number by second.
- Input a number and find the difference of its cube and square.
- Input the weight in kg and convert it into grams.
- Write a program to input time in seconds and convert into hours.
- Input full marks and obtained marks calculate percent marks.
- Input obtained marks and percent marks – calculate full marks
- Input Real price and profile percent and then calculate New Price.
- Calculate number of hours in a year of 365 days.
- Write a program to input two values and swap/interchange them. [ you can use a third variable]
- Same question without using third variable.
- Input a fractional number say 34.78. Now store the value in integer part to first variable and value in fractional part in second variable.
- Write a program to input five numbers and find the sum and average of those values.
- Write a program to input a three-digit number [ say 456] and then find the sum of the digits of this number.
- Input the principal, time and simple interest and then calculate the rate of interest.
- Input distance in kilo meter and change it into meter.
- Input the height in feet changes it into meters and inches.
- Input a three digit number [ say 587] and reverse this number [ i.e.785 ]
Comments
Post a Comment