Programming / Computing

Sum of two numbers

 This program will print the sum of two numbers which are taken from the user

............................................................................................................................................................................................................................................

 

 

 

#include<stdio.h>

#include<conio.h>

 

void main ()

{

int a,b,sum;

sum = 0;

printf("enter 1st number = ");

scanf("%d",&a);

printf("enter 2nd number = ");

scanf("%d",&b);

sum = a+b;

printf("sum = %d",sum);

}

 

© 2010 All rights reserved.

Make a free websiteWebnode