Friday, 28 March 2014

0

C Program 7: To find the area and perimeter of rectangle and circumference of circle

  • Friday, 28 March 2014
  • IndianBooktuber
  • Aim: The length & breadth of a rectangle and radius of circle are input through the keyboard. Write a program to calculate the area and perimeter of the rectangle, and the circumference of the circle. Theory: you need to know about three mathematical formulas and here you go.. This is the code.. //to find area and perimeter of rectangle...
    read more
    1

    C Program 6: To convert the temperature from Fahrenheit to Celsius.

  • IndianBooktuber
  • Aim: Temperature of a city in Fahrenheit degree is input through the keyboard. Write a program to convert this temperature into Centigrade degrees. Theory: This is one of the basic programs that one should know to make in the C but the only tough part is remembering the formula for conversion of temperature from one scale to another....
    read more
    1

    C Program 5: To find the average and percentage of marks obtained

  • IndianBooktuber
  • Aim: If marks obtained by a student in five different subjects are input through the keyboard, write a program to find out the aggregate marks and percentage marks obtained by the student. Assume that the maximum marks that can be obtained by a student in each subject is 100. Theory: Again, as in the previous program, this program also...
    read more
    7

    C Program 4: To Convert distance in Km to cm, feet, inch and meter.

  • IndianBooktuber
  • Aim: the distance between two cities (in km.) is input through the keyboard. Write a program to convert and print this distance in meters, feet, inches and centimeters. Theory: This program needs no complex coding. It's a simple program where you need to know four basic mathematical formulae. Once you know them, you can easily code this...
    read more
    7

    C Program 3: To calculate the gross salary when the basic salary is entered through keyboard

  • IndianBooktuber
  • Aim: Ramesh's basic salary is input through the keyboard. His dearness allowance is 40% of basic salary, and house rent allowance is 20% of basic salary. Write a program to calculate his gross salary. Theory: We need to take input from user and then apply the simple formula to calculate the gross salary i.e. gross salary= basic salary+...
    read more

    Monday, 24 March 2014

    0

    C Program 2: To Reverse A Number Using An Array

  • Monday, 24 March 2014
  • IndianBooktuber
  • Aim: To reverse a number(digits entered) using an array Theory: At first, we would need to ask the user about how many digits he is going to enter or what is the length of the number which he wants to reverse. Then we would ask him to enter the digits of the number one by one and then we reverse the digit and print the reverse number. Following...
    read more
    0

    C Program 1: To Print The Sum of First Five Natural Numbers Using Arrays

  • IndianBooktuber
  • Aim: To print the sum of first five natural numbers using arrays Theory: For achieving the desired result, we need to put first five natural numbers in form of array. So, we use a for loop so as to enter the first give natural numbers in an array and then calculate their sum. The code for the following would be: //to print the sum of first...
    read more

    Friday, 21 March 2014

    1

    What To Expect Here?

  • Friday, 21 March 2014
  • IndianBooktuber
  • I knew I could simply start with posting the C Programs which I need to code myself just to increase my efficiency in C programming. In fact, I have already posted a few on PerCepTion which is my personal blog but I felt it would not be a good idea to clutter my personal blog with C Programs. Many of my readers are already disappointed with that move so I decided to make things right and started this one. So, by now, from...
    read more

    Subscribe