answersLogoWhite

0

#include<stdio.h>

#include<conio.h>

void main()

{

clrscr();

int a,b,c,n;

printf("enter the numbers");

scanf("%D",&n);

for(i=0;i<n;i++)

a=b;

a=c;

c=a+b;

printf("the sum is %c",);

getch();

}

User Avatar

Wiki User

14y ago

What else can I help you with?

Continue Learning about Engineering

What is matrix programming in C programming?

C Examples on Matrix OperationsA matrix is a rectangular array of numbers or symbols arranged in rows and columns. The following section contains a list of C programs which perform the operations of Addition, Subtraction and Multiplication on the 2 matrices. The section also deals with evaluating the transpose of a given matrix. The transpose of a matrix is the interchange of rows and columns.The section also has programs on finding the trace of 2 matrices, calculating the sum and difference of two matrices. It also has a C program which is used to perform multiplication of a matrix using recursion.C Program to Calculate the Addition or Subtraction & Trace of 2 MatricesC Program to Find the Transpose of a given MatrixC Program to Compute the Product of Two MatricesC Program to Calculate the Sum & Difference of the MatricesC Program to Perform Matrix Multiplication using Recursion


Explain what you understand by a program with one example?

A program is a set of instructions written in a programming language that tells a computer how to perform specific tasks. For example, a simple calculator program can take user input for two numbers and an operation (like addition or subtraction), process that input, and then display the result. This program demonstrates how code can automate calculations and provide user-friendly interaction.


Who invented the mechanical calculator in the 1600s?

The mechanical calculator was invented by Blaise Pascal in the 1640s. He created the Pascaline, a device designed to perform addition and subtraction, primarily to help his father with tax calculations. This invention marked a significant advancement in calculating technology, laying the groundwork for future developments in computing.


What are the advantages of the machine by Leibnitz over the pascaline?

Leibniz's machine, known as the Step Reckoner, offered several advantages over Pascal's Pascaline. Firstly, it could perform multiplication and division directly, whereas the Pascaline was limited to addition and subtraction. Additionally, the Step Reckoner could handle larger numbers due to its more advanced mechanism, allowing for greater computational flexibility. Lastly, Leibniz's design included a more efficient use of gears, which contributed to its overall reliability and functionality.


What are the basic drawback to Pascaline?

The Pascaline, invented by Blaise Pascal in the 17th century, had several drawbacks. Firstly, it could only perform addition and subtraction, limiting its functionality for more complex calculations. Additionally, it was cumbersome and prone to mechanical errors, as the gears could jam or misalign. Finally, its cost made it inaccessible to the average user, limiting its widespread adoption.

Related Questions

Function of abacus?

An abacus is an ancient form of the modern day calculator.


Do you add before you subtract?

In mathematics, the order of operations dictates that you perform addition and subtraction in the order they appear from left to right in an expression. This means that you should perform addition before subtraction only if addition comes before subtraction in the expression. If addition and subtraction are next to each other, you would perform them from left to right.


What function did the step reckoner perform?

Operations such as addition and subtraction


How do you perform arithmetic operations on binary numbers?

There are a few rules to perform arithmetic operations in binary numbers. According to those rules you can add or subtract binary numbers. There are only two arithmetic operations used in binary numbers, they are addition and subtraction.


What is matrix programming in C programming?

C Examples on Matrix OperationsA matrix is a rectangular array of numbers or symbols arranged in rows and columns. The following section contains a list of C programs which perform the operations of Addition, Subtraction and Multiplication on the 2 matrices. The section also deals with evaluating the transpose of a given matrix. The transpose of a matrix is the interchange of rows and columns.The section also has programs on finding the trace of 2 matrices, calculating the sum and difference of two matrices. It also has a C program which is used to perform multiplication of a matrix using recursion.C Program to Calculate the Addition or Subtraction & Trace of 2 MatricesC Program to Find the Transpose of a given MatrixC Program to Compute the Product of Two MatricesC Program to Calculate the Sum & Difference of the MatricesC Program to Perform Matrix Multiplication using Recursion


In order to perform this opertation fractions must have the same denominators?

Addition or subtraction


What perform a possible math operation?

By using division, multiplication, addition or subtraction


What is an adding machine?

An adding machine is a mechanical or electromechanical calculator which could perform addition and subtraction.


What are arthematic operations?

Arithmetic operations are fundamental mathematical processes used to perform calculations with numbers. The primary operations include addition, subtraction, multiplication, and division. These operations are essential for solving various mathematical problems and are foundational to more complex mathematics. They are often represented by symbols: + for addition, - for subtraction, × for multiplication, and ÷ for division.


What are the operation symbols?

Operation symbols in mathematics are used to represent mathematical operations, such as addition (+), subtraction (-), multiplication (×), and division (÷). These symbols are used to perform calculations and denote relationships between numbers or variables.


How did pascaline machine work?

The Pascaline was a mechanical calculator invented by Blaise Pascal in the 17th century. It used gears and cogs to perform addition and subtraction by turning dials to input numbers and then turning a crank to perform the calculation. The result was displayed in windows on the machine.


Can we perform Addition of 1 to n numbers?

Yes.