#include<stdio.h>
#include<conio.h>
int main(void)
{
int sum=0,n,i;
clrscr();
printf("\n Enter two no.");
scanf("%d%d",&n,&i);
sum=n+i;
printf("\n%d+%d=%d,n,i,sum);
getch();
return 0;
}
Chat with our AI personalities
#include
#include
void main()
{
int a,b,c;
clrscr();
printf("enter a ,b values:");
scanf("%d%d",&a,&b);
c=a+b;
printf("the addition of two no is:",c);
getch();
}
//write a program for subtraction of 2 numbers.
#include
main()
{
int a,b,d;
printf("enter 2 numbers :");
scanf("%d%d",&a&b);
d=a-b;
printf("subtraction of 2 numbers=%d",d);
}
output(example)-
enter 2 numbers : 3 2
subtraction of 2 numbers : 1
#include<stdio.h>
#include<conio.>
void main()
{
int a,b,sum;
clrscr();
cin<<"enter value of a";
cout>>a;
cin<<"enter value of b";
cout<<b;
sum=a+b;
cout<<"sum of two numbers="
getch();
}
//program to add two numbers
#include<stdio.h>
#include<conio.h>
void main()
{
int a,b,c;
clrscr(): //its prototype or header file is conio.h
printf("\n enter first number :"); //its prototype or header file is stdio.h
scanf("%d",&a); //its prototype or header file is stdio.h
printf("\n enter second number :"); //its prototype or header file is stdio.h
scanf("%d",&b); //its prototype or header file is stdio.h
c=a+b;
printf("\n the sum of two numbers is :%d",c); //its prototype or header file is stdio.h
getch(); //its prototype or header file is conio.h
}
Just declare, initialize, and subtract...
double a = 1.23456789;
double b = 2.34567890;
double c;
c = a-b;
x -=y;
Write and run a client and a server program in C-language using UDP
write a lex program to delete space from the program
Yes.
How to write the program un Assembly language to set a password for personal computers?