Tuesday, 29 August 2017

C Program for Sum of Two Numbers

/*    Sum of Two Numbers    */

#include<stdio.h>
 int main()
 {
   int a,b,sum;
   printf("Type your frist value to add : ");
   scanf("%d",&a);
  printf("Type your second value to add : ");
   scanf("%d",&b);
  sum =a+b;
   printf("Total of your value =  %d",sum);
  return 0;
 }

No comments:

Post a Comment