#include<stdio.h>
#include<conio.h>
void main ( )
{
int a,b,c;
printf("Enter the two numbers");
scanf("%d,%d",&a,&b);
c = a+b;
printf("\n sum is %d",c);
getch( );
}
Example: output
a = 18
b = 17
c = a+b = 18+17=35
E-notebook
#include<stdio.h>
#include<conio.h>
void main ( )
{
int a,b,c;
printf("Enter the two numbers");
scanf("%d,%d",&a,&b);
c = a+b;
printf("\n sum is %d",c);
getch( );
}
Example: output
a = 18
b = 17
c = a+b = 18+17=35