Question:- Write a program to sum of two number.

 

#include<stdio.h>
#include<conio.h>
void main( )
{
 int a,b,sum;
 clrscr( );
 printf("Enter any two number a and b :");
 scanf("a=%d,b=%d",&a,&b);
 sum=a+b;
 printf("\nsum=%d",sum);
  getch( );
}
Output:-
Enter any two number a and b:
a=5,b=3
sum=8

Comments

Popular posts from this blog