Search
  • Soumen(ADMIN)

Addition Of Two Numbers in C

Updated: Aug 26

#include<stdio.h>

#include<conio.h>

void main() {

int a;

int b;

int c;

printf("Please enter the first Number: ");

scanf("%d",&a);

printf("Please enter the second Number: ");

scanf("%d",&b);

c=a+b;

printf("The Result is %d",c);

}



OUTPUT:

Please enter the first Number: 5 Please enter the second Number: 4

The Result is 9

291 views

Recent Posts

See All

Bisection Method in C

#include<stdio.h> #include<stdlib.h> #include<math.h> #define f(x) (x*x*x - x - 1) int main() { float x0,a,b; int k; float e = .001; do{ printf("please enter the value of a and b : "); scanf("%f%f",&a

Matrix Input using Array in C

#include<stdio.h> int main() { int a[20][20]; int i, j, m, n; printf("please enter the row and column number: "); scanf("%d %d",&m,&n); for(i=0;i<m;i++) { for(j=0;j<n;j++) { printf("\n Please enter a(

Bubble Sort in C

//bubble sort #include<stdio.h> #include<conio.h> int main() { int n,i,j,temp; int arr[n]; printf("please enter how many number do you want to put?"); scanf("%d",&n); for(i=0;i<n;i++) { printf("\nente

  • Facebook Social Icon

©2019 by WEBTONEXT