Initial and If structure

Write a program in C to show your age period.

Write to program in C to change hexadecimal to decimal and octal.

Programming C : Write a program to evaluate function of y using if statement or ? operator.

Programming C : Write a program using conditional operator to find out maximum of 3 numbers.

Programming C : Write a program that will obtain the length and width of a rectangle from the user and compute its area and parameter.

Programming C : Problem : Write a program that will obtain the length and width of a rectangle from the user and compute its area and parameter. #include<stdio.h> #include<conio.h> main () {              float length, width, area, perimeter;                          //Taking variable              printf("Enter the value of length : ");                        //Show a dialog to [...]

Programming C : Write a program that can convert an upper case letter to lower case letter and vice versa.

Programming C : Problem : Write a program that can convert an upper case letter to lower case letter and vice versa. Write a program in C. #include <stdio.h> #include <stdlib.h> main () {             char inputLetter;                                   // variable to catch the letter             printf("Enter your Letter : ");             [...]

Programming C : Write a program that can say the name of Month by receiving 1 to 12 using switch statement.

Programming C : Problem : Write a program that can say the name of Month by receiving 1 to 12 using switch statement. Write a program in C. #include<stdio.h> #include<conio.h> main () {              int month;                                                        //Taking variable for month              printf("Enter a number from 1 to [...]

Programming C : Write a program that can say the name of month by receiving 1 to 12 using if-then-else statement.

Programming C : Problem : Write a program that can say the name of month by receiving 1 to 12 using if-then-else statement. Write a program in C. #include<stdio.h> #include<conio.h> main () {             int month;                                                                //variable to detect month             [...]

Programming C : Write a program that can say the name of weekdays by receiving 1 to 7 using switch statement.

Programming C : Problem : Write a program that can say the name of weekdays by receiving 1 to 7 using switch statement. Write a program in C. #include<stdio.h> #include<conio.h> main () {              int day;                                                             //variable for a number of weekdays           [...]

Programming C : Write a program that can say the name of weekdays by receiving 1 to 7 using if-then-else statement.

Programming C : Problem : Write a program that can say the name of weekdays by receiving 1 to 7 using if-then-else statement. Write a program in C. #include<stdio.h> #include<conio.h> main () {            int day;                                                             //variable for a number of weekdays            printf("Enter [...]

Programming C : Write a program that can test a number whether it is negative or positive.

Programming C : Problem : Write a program that can test a number whether it is negative or positive. Write a program in C. #include<stdio.h> #include<conio.h> main () {            int n;                                                                 //Taking variable for an integer number            printf("Enter a number [...]

Programming C : Write a program that can test a year whether it is leap year or not.

Programming C : Problem : Write a program that can test a year whether it is leap year or not. Write a program in C. #include<stdio.h> #include<conio.h> main () {             int year;                                      //Taking variable for year             printf("Enter a year : ");            //Show a dialog to input year     [...]

Programming C : Write a program that can test whether it is divided by 5.

Programming C : Problem : Write a program that can test whether it is divided by 5. Write a program in C. #include<stdio.h> #include<conio.h> main () {               int n;                                                                                               [...]

Programming C : Write a program that can test whether a number is Odd or Even.

Programming C : Problem : Write a program that can test whether a number is Odd or Even. Write a program in C. #include<stdio.h> #include<conio.h> main () {             int n;                                                               //variable for an integer number             printf("Enter an integer number [...]

Programming C : Write a program that can say weather it is letter, digit or special character.

Programming C : Problem : Write a program that can say weather it is letter, digit or special character. Write a program in C. #include<stdio.h> #include<conio.h> main () {             char ch;                                                                                 //varibale for letter/digit/special character (ch)   [...]

Programming C : Write a program that can say ASCII value of a key from keyboard.

Programming C : Problem : Write a program that can say ASCII value of a key from keyboard. Write a program in C. #include<stdio.h> #include<conio.h> main () {             char key;                                                            //variable for input a key from keyboard             printf("Press a key = [...]

Programming C : Write a program that can convert temperature from Fahrenheit to Centigrade and vice versa.

Programming C : Problem : Write a program that can convert temperature from Fahrenheit to Centigrade and vice versa. #include<stdio.h> #include<conio.h> main() {              float f, c;                                                                 // variable for Fahrenheit (h) & Centigrade (c)              printf("Enter the value of [...]

Programming C : Find out the maximum of three numbers using if structure.

Programming C : Problem : Find out the maximum of three numbers using if structure. Write a program in C. #include<stdio.h> #include<conio.h> main () {                float a, b, c;                                                 //variable for 3 numbers (a, b, c)                printf("Enter the value of a = ");     [...]