Friday, August 13, 2021

Addition program - C language

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

#include<stdio.h>
#include<conio.h>

void main()
{
  int a=10,b=20;
  clrscr();

  int ans = a + b;

  printf("Addition is : %d",ans);

  getch();



0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home