Monday, April 13, 2020

Print sum of numbers using C


  • Program :
#include<stdio.h>
#include<conio.h>
void main()
{
int a,b,c;
clrscr();
printf("\n----------------PRINT SUM OF NUMBERS----------------");
printf("\nEnter any two numbers:");
scanf("%d %d", &a, &b);
c =  a + b;
printf("\nThe addition of two number is: %d", c);
getch();
}


  • Output :

No comments:

Post a Comment

Function Overloading in C++

https://monitechvenkat1620.blogspot.com Program : #include <iostream> using namespace std; int c(int x, int y) {   return...