UncleCoder.com

UncleCoder.com

Free programming examples and instructions

C program - sum of any two numbers

C program for how to find sum of any two numbers

by Krishna viswambharan


Posted on 06 Aug 2017 Category: C Views: 450

Edited on 09 Aug 2017


 

C program to find sum of any two numbers

#include <stdio.h>
#include <conio.h>

void main()
{
     int n1,n2,sum;
     printf("Enter the first number :");
     scanf("%d",&n1);
     printf("Enter the second number :");
     scanf("%d",&n2);
     sum=n1+n2;
     printf("sum = %d",sum);
     getch();
}

 



Leave a Comment:


Advertisement