Write a program to find sum of two numbers in C

This is a simple program to find out the sum of two numbers in C Program.

Hope it will help you!

//write  a program to find sum of two numbers
#include<stdio.h>
#include<conio.h>
void main(){
int a,b,c;
//clrscr();
printf("Enter Two Values");
scanf("%d%d",&a,&b);
c=a+b;
printf("the sum of a and b is  %d",c);
}

 

 

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.