C

Write a C Program to Generate the Fibonacci Series up to n Terms

In this tutorial learn how you can write a c program to generate the Fibonacci series up to n terms given by the user. The Fibonacci numbers are the numbers in the following integer sequence. 0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144, …….. In mathematical terms, the sequence Fn of Fibonacci […]

Write a C Program to Generate the Fibonacci Series up to n Terms Read More »

write a c program to find the larger number between two numbers using a conditional operator

Write a C Program to Find Larger Number Between Two Numbers using Conditional Operator

In this tutorial learn how you can find the larger number between two numbers using a conditional operator. We are using a test case “<test case>? True value: false value”.  This is the shortcut form of the if statement. First, write a statement and use “?” as a separator then the first one is a true case

Write a C Program to Find Larger Number Between Two Numbers using Conditional Operator Read More »

write a c program to convert seconds into hours minutes and seconds

Write a C Program to Convert Seconds into Hours, Minutes and Seconds

In this tutorial learn how you can convert seconds into hours, minutes and seconds. There are 3600 seconds in 1 hour and 60 seconds in 1 minute. For a hours we first divide seconds by 3600 and for a minutes first, we take the remainder of the hours then divide the remainder by 60.  And for

Write a C Program to Convert Seconds into Hours, Minutes and Seconds Read More »

Write a C Program to Find mn where m and n are Integers and Value of n be Negative and 0

In this tutorial learn how you can write a c program to find mn. Where m and n are integers and consider the value of n be negative and 0 which is given by user. We are using <math.h> header and pow() function for this tutorial. C programming is a powerful general-purpose programming language. It can be used to

Write a C Program to Find mn where m and n are Integers and Value of n be Negative and 0 Read More »

write a c program to convert number of days into years months and days

Write a C Program to Convert Number of Days into Years, Months and Days

In this tutorial learn how you can write a c program to convert no of days into years, months and days. There are 365 days in 1 year and 30 days in 1 month. For a year we first divide days by 365 and for a month first, we take the remainder of years then divide the remainder

Write a C Program to Convert Number of Days into Years, Months and Days Read More »

write a c program to find the area of circle

Write a C Program to Find the Area of Circle | Get Radius from the user and Use PI as a Constant Variable

In this tutorial learn how you can write a c program to find the area of a circle get the radius from the user and use pi as a constant variable. First, we will ask the user for the radius and then add get area of circle. C programming is a powerful general-purpose programming language. It can be used

Write a C Program to Find the Area of Circle | Get Radius from the user and Use PI as a Constant Variable Read More »

write a c program to add three numbers

Write a C Program to Add Three Numbers. Get Numbers from the User

In this tutorial learn how you can get three numbers from the user and add three numbers. First, we will ask the user for the numbers and then add those numbers. C programming is a powerful general-purpose programming language. It can be used to develop software like operating systems, databases, compilers, etc. Write a Program to Add Three Numbers. Get

Write a C Program to Add Three Numbers. Get Numbers from the User Read More »

write a c program to display the area and perimeter of the rectangle

Write a C Program to Display the Area and Perimeter of the Rectangle

In this tutorial learn how you can display the area and perimeter of the rectangle in c. In this program, we get the inputs from the user. The inputs are the length and breadth of the rectangle. Then display the area and perimeter of the rectangle. C programming is a powerful general-purpose programming language. It can be used to

Write a C Program to Display the Area and Perimeter of the Rectangle Read More »

write a c program to display your name address and phone number

Write a C Program to Display your Name, Address, and Phone Number

In this tutorial learn how you can display your name, address, and phone number in c. We use printf to display all our details. C programming is a powerful general-purpose programming language. It can be used to develop software like operating systems, databases, compilers, etc. Write a Program to Display your Name, Address, and Phone Number in C Here is

Write a C Program to Display your Name, Address, and Phone Number Read More »

write a c program to display hello world

Write a C Program to Display Hello World

In this tutorial learn how you can display every first programmer’s first program “hello world” in c. “Hello World” program is considered the first program for every programmer C programming is a powerful general-purpose programming language. It can be used to develop software like operating systems, databases, compilers, etc. Write a Program to display hello world in

Write a C Program to Display Hello World Read More »