Home Top Ad

Responsive Ads Here

Write a program Addition Two Number in C

Share:

#include<stdio.h>

#include<conio.h>

void main()

{

clrscr();  //Previous screen clear

int a,b,c;

printf("Enter Two Num:");

scanf("%d %d",&a,&b);

c=a+b;

printf("The Sum is %d\n",c);

getch();

}


Output:

******************************************

Enter Two Num:2   2

The Sum is 4


Post a Comment

No comments

Welcome to saveracom.blogspot.com

Data Science using Spreadsheet Software Assignment 3

Printing Workbooks select the cells you want to print and then set that area as the print area   Steps to set a print area: Select the cells...