Sum of digits
#include <stdio.h>
int main()
{
int a,b,c;
printf(“Enter the numbers to be added\n”);
scanf(“%d%d”,&a,&b);
c=a+b;
printf(“Sum of the digits is %d”,c);
return 0;
}
#include <stdio.h>
int main()
{
int a,b,c;
printf(“Enter the numbers to be added\n”);
scanf(“%d%d”,&a,&b);
c=a+b;
printf(“Sum of the digits is %d”,c);
return 0;
}
Get Hiring Updates right in your inbox from PrepInsta
Login/Signup to comment