Posted in C Language

C Program 9

If a five digit number is input through the keyboard, write a program to obtain the sum of the first and last digit of this…

Continue Reading...
Posted in C Language

C Program 8

If a five digit number is input through the keyboard, write a program to reverse the number. main() { int a, b, c, d, e,…

Continue Reading...
Posted in C Language

C Program 7

If a five digit number is input through the keyboard, write a program to calculate the sum of its digits. main() { int a, b,…

Continue Reading...
Posted in C Language

C Program 6

Two number are input through the keyboard into two locations C and D. Write a program to interchange the contents of C and D. main()…

Continue Reading...
Posted in C Language

C Program 5

The length & breath of a rectangle and radius of a circle are input through the keyboard. Write a program to calculate the area &…

Continue Reading...
Posted in C Language

C Program 4

Temperature of a city in Fahrenheit degrees is input through the keyboard. Write a program to convert this temperature into centigrade degrees. main() { float…

Continue Reading...
Posted in C Language

C Program 3

The marks obtained by a student in five different subjects are input through the keyboard, find out the aggregate marks and percentage marks obtained by…

Continue Reading...
Posted in C Language

C Program 2

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…

Continue Reading...
Posted in C Language

C Program 1

Mohan basic salary is input through the keyboard. His dearness allowance is 40% of basic salary and house rent allowance is 20% of basic salary….

Continue Reading...
Posted in C Language

Rules for writing C Program

Each instruction in a C program is written as a separate statement. These statement are written in same order as we want to execute step…

Continue Reading...