AIM:-Write a program to add two numbers.
Source Code:
#include<stdio.h>
#include<conio.h>
void main()
{
clrscr();
int a,b,S;
printf("Enter the first number=");
scanf("%d",&a);
printf("Enter the 2nd number=");
scanf("%d",&b);
S=a+b;
printf("Total sum=%d");
getch();
}
Output of C addition program:
What is C language and describe the main characteristics.
|
0 Comments
How did you like it, please comment by posting my post