Total Pageviews

C Program to assign values of two numbers and print their addition without scanf

Program to assign values of two numbers and print their addition.

#include
#include
void main()
{
  int a,b,ans;
  clrscr();
  a=10;
  b=20;
  ans=a+b;
  printf("Addition is : %d",ans);
  getch();
}

No comments:

Post a Comment

Thank you