Posts Tagged ‘c programs’

C Program to find Number of Three Digits Numbers Greater Than 100

Q. Write a C Program to find the number of three digit numbers greater than 100 in which digits appear in strictly increasing order. e.g. 123, 124, 125, 134, 135, 136, 145, 146, 147,….,689,789. (IIT-JAM-2011) Source Code: Output: Version/Compatibility: Turbo C++ Version 3.0 (Borland International, Inc.) Download Now (.Zip File – 36KB)…

C Program to Check Whether Number is Positive, Negative or Zero

Q.: Write C Program to Determine Whether given number is positive, negative or zero using if…else statement. We can check multiple conditions like three conditions using nested if else in C Programming. Source Code: Output: Version : Turbo C++ Version 3.0 (Borland International, Inc.) Download Now (.Zip File – 19KB)…

Write C program to Print all the Numbers from 10 to 0 using while Loop

Q. Write C program to Print all the Numbers from 10 to 0 using while Loop. This C Program prints the numbers in descending order from 10 to 0. Here we have used while loop. We can also create same program using for loop also. Basic logic is totally dependent on initialization, test condition, decrements. Source Code: Output: Download [...]

Write C Program to Calculate Area of Circle

Q.: Write C program to calculate the area of circle. In C Programming, It is always a program which says to calculate area of circle. We can get the area of circle using following formula. Area of Circle = pi * radius * radius where, pi=3.14. Source Code: Output: Download Now (.Zip File – 9 [...]

C Program to Check given number is Armstrong number or not using Power Function

Write C Program to check given number is armstrong number or not using power function Know more What is Armstrong Number? Header File Required: math.h Source Code: Output: Download Now (.Zip File)…

C Program to Check given number is Armstrong number or not

Q. Write a C Program to check given number is armstrong number or not What is Armstrong Number? – An Armstrong number is a number of three digits which is an integer such that sum of the cubes of its digits is equal to the number itself. For example, 153 is an Armstrong number, i.e = [...]

C Program to Print Pattern Series as 1 -1 1 -1 1 -1

Q. Write a C Program to Print Pattern Series as 1 -1  1 -1  1 -1  1 -1  1 -1 The following code prints the pattern of series as 1 -1  1 -1  1 -1  1. Source Code: Output: Download Now (.Zip File)…

isxdigit Function in C | Using isxdigit in C Program | Example

Q. Write a C Program to check given digit is whether a hexadecimal digit or not. isxdigit Function in C: This function is used to check given digit is a hexadecimal digit or not. It can be any from A-F, a-f, 0-9. Header File Required : ctype.h Declaration : int isxdigit(int ch); Source Code: Output: [...]

toupper Function in C | Using toupper in C Program | Example

Q. Write a C Program to convert given lower case character to upper case. toupper Function in C: This function is used to convert lower case character to upper case. Header File Required : ctype.h Declaration : int toupper(int ch); Source Code: Output: Download Now(.Zip File)…