How to Write a C-language program for Addition,Substraction,Multiplication and Division.

1)-Write a C- program for addition of n number .#java 8 download.

 Programming 5 axis cnc,java web services rest,java spring tutorial,java rest api,java point,java virtual machine,java executor framework,java for windows 7,restful  web services java,java web services soap,java 8 download,programming game ai by example,programming questions in java,programming quotes,programming for problem solving,programming with mosh,programming near me,programming in visual basic,programming python pdf,programming r,programming aptitude test,c program to find sum of n numbers using for loop,c program to find sum of n numbers using function,sum of numbers from 1 to 100 in c,c program for sum of two numbers,c program to find multiples of a number,c program to find sum of n numbers using array,c program to find sum of 10 numbers using function,how to find multiples of a number in c++,
program for addition

 Programming 5 axis cnc,java web services rest,java spring tutorial,java rest api,java point,java virtual machine,java executor framework,java for windows 7,restful  web services java,java web services soap,java 8 download,programming game ai by example,programming questions in java,programming quotes,programming for problem solving,programming with mosh,programming near me,programming in visual basic,programming python pdf,programming r,programming aptitude test,
output of addition
#include<stdio.h>
#include<conio.h>
Void main()
{
Int  a,n,i,sum=0,;
Clrscr();
Printf(“Enter the  number which you want to add  \n”);
Scanf (“%d”,&n);
Printf(“Enter the numbers   \n” );
For(i=1; i<=n; i++)
{
Scanf(“%d”,&a);
Sum=sum+a;
}
Printf(“After  addition result=%d”,sum);
getch();
Input:-Enter the  number which you want to add 
                    4
Enter the numbers
1
2
3
4
 output  :- After  addition result=     10

Program in c language using if-else condition.

2)- Write a C-language program for the Substraction of two numbers.

#include<stdio.h>
#include<conio.h>
Void main()
{
Int  a,b, Sub;
Clrscr();
Printf(“  Enter the number from which you want to substract  \n”);
Scanf(“%d”,&a);
Printf(“Enter the number  which you want to substract  \n”);
Scanf(“%d”,&b);
Sub=a-b;
Printf(“After Substraction  result=%d”,Sub);
getch();
}
Input:-Enter the number from which you want to substract
                65
Enter the number  which you want to substract  
                 4
output  :-After Substraction  result=61
 Programming 5 axis cnc,java web services rest,java spring tutorial,java rest api,java point,java virtual machine,java executor framework,java for windows 7,restful  web services java,java web services soap,java 8 download,programming game ai by example,programming questions in java,programming quotes,programming for problem solving,programming with mosh,programming near me,programming in visual basic,programming python pdf,programming r,programming aptitude test,c program to find sum of n numbers using for loop,c program to find sum of n numbers using function,sum of numbers from 1 to 100 in c,c program for sum of two numbers,c program to find multiples of a number,c program to find sum of n numbers using array,c program to find sum of 10 numbers using function,how to find multiples of a number in c++,
program for substraction
 Programming 5 axis cnc,java web services rest,java spring tutorial,java rest api,java point,java virtual machine,java executor framework,java for windows 7,restful  web services java,java web services soap,java 8 download,programming game ai by example,programming questions in java,programming quotes,programming for problem solving,programming with mosh,programming near me,programming in visual basic,programming python pdf,programming r,programming aptitude test,
output

3)- Write a C- program for Multiplication of n number.

#include<stdio.h>
#include<conio.h>
Void main()
{
Int  a,n,i, Multi=1,;
Clrscr();
Printf(“Enter the  number which you want to multiply  \n”);
Scanf (“%d”,&n);
Printf(“Enter the numbers   \n” );
 For(i=1; i<=n; i++)
{
Scanf(“%d”,&a);
               Multi =Multi * a;
}
Printf(“After  Multiplication  result=%d”,Multi);
getch();
}
Input:-Enter the  number which you want to multiply
                 4
Enter the numbers
1
2
3
5
output  :-After  Multiplication  result=30

 Programming 5 axis cnc,java web services rest,java spring tutorial,java rest api,java point,java virtual machine,java executor framework,java for windows 7,restful  web services java,java web services soap,java 8 download,programming game ai by example,programming questions in java,programming quotes,programming for problem solving,programming with mosh,programming near me,programming in visual basic,programming python pdf,programming r,programming aptitude test,
program for multiplication
               
 Programming 5 axis cnc,java web services rest,java spring tutorial,java rest api,java point,java virtual machine,java executor framework,java for windows 7,restful  web services java,java web services soap,java 8 download,programming game ai by example,programming questions in java,programming quotes,programming for problem solving,programming with mosh,programming near me,programming in visual basic,programming python pdf,programming r,programming aptitude test,
output

 4)- Write a C-language program for the division of two numbers.

#include<stdio.h>
#include<conio.h>
Void main()
{
float  a,b, Div;
Clrscr();
Printf(“Enter the number  which you want to divide \n”);
Scanf(“%f”,&a);
Printf(“Enter the number from which you want to divide  \n”);
Scanf(“%f”,&b);
Div=a/b;
Printf(“After division Result=%f”,Div);
getch();
}
Input:-Enter the number  which you want to divide
                 20
Enter the number from which you want to divide
                4
output  :-After division Result=  5.00000
 Programming 5 axis cnc,java web services rest,java spring tutorial,java rest api,java point,java virtual machine,java executor framework,java for windows 7,restful  web services java,java web services soap,java 8 download,programming game ai by example,programming questions in java,programming quotes,programming for problem solving,programming with mosh,programming near me,programming in visual basic,programming python pdf,programming r,programming aptitude test,
program for division

 Programming 5 axis cnc,java web services rest,java spring tutorial,java rest api,java point,java virtual machine,java executor framework,java for windows 7,restful  web services java,java web services soap,java 8 download,programming game ai by example,programming questions in java,programming quotes,programming for problem solving,programming with mosh,programming near me,programming in visual basic,programming python pdf,programming r,programming aptitude test,
Div output
@Shiva

>>C- program to compute the circumference of a circle and area of circle. Click to read

Post a Comment

0 Comments