DYNAMIC C Program that add three numbers - 6 Players blogs for technology

give us your feedback

People Online

Breaking

ads

Post Top Ad

Sunday, June 16, 2019

DYNAMIC C Program that add three numbers

#include <stdio.h>
#include <stdlib.h>

int main()
{
   int a,b,c,d;
   /*DYNAMIC*/
   printf("\n\t enter the value of a= ");
   scanf("%d",&a);
   printf("\n\t enter the value of b= ");
   scanf("%d",&b);
    printf("\n\t enter the value of c= ");
   scanf("%d",&c);
   d=a+b+c;
   printf("\n\t the sum of three number  are = %d",d);
    return 0;
}


The output

enter the value of a= 2
enter the value of b= 2
enter the value of c= 2

the sum of three number  are = 6

No comments:

Post a Comment

ads1

Post Top Ad