Using printf and scanf Write a c program to perform operations using printf and scanf write a C program to add two numbers :

Write a c program to perform operations using printf and scanf :


// write a C program to add two numbers :

#include<stdio.h>
int main()
{
int num1, num2,sum;
printf("enter any two numbers =");
scanf("%d %d"  ,&num1, &num2);
Sum=num1+num2;
printf("the sum of two numbers is %d", sum);
}

Post a Comment

Please Select Embedded Mode To Show The Comment System.*

Previous Post Next Post