Addition of 2 variables by using dynamic values
Dynamic values can be changed at run time also.
#include<stdio.h>
main()
{
int a,b;
clrscr();
printf("enter the values of a,b:");
scanf("%d%d",&a,&b);
c = a+b;
printf(" c=%d",c);
getch();
}
output:-
c=30
0 comments:
Post a Comment