#include<stdio.h>
#include<conio.h>
void
main()
{
clrscr();
printf(“Welcome
To The World Of C”);
getch();
}
PROGRAM TO ADD TWO NUMBERS AND PRINT THE RESULT
#include<stdio.h>
#include<conio.h>
void main()
{
int a=10,b=5,c;
clrscr();
c=a+b;
printf(“%d”,c);
getch();
}
PROGRAM TO SUBTRACT TWO NUMBER AND PRINT THE RESULT
#include<stdio.h>
#include<conio.h>
void main();
{
int a=10,b=5,c;
clrscr();
c=a-b;
printf(“%d”,c);
getch();
#include<stdio.h>
#include<conio.h>
void main()
{
int a=10,b=5,c;
clrscr();
c=a*b;
printf(“%d”,c);
getch();
}
#include<stdio.h>
#include<conio.h>
void main()
{
int a=10,b=5,c;
clrscr();
c=a/b;
printf(“%d”,c);
getch();
}
#include<stdio.h>
#include<conio.h>
void main();
{
int a;
clrscr();
printf(“enter the number”);
scanf(“%d”,&a);
printf(“The Entered No Is:%d”,a);
getch();
}
#include<stdio.h>
#include<conio.h>
void main()
{
float a;
clrscr();
printf(“enter the number”);
scanf(“%f”,&a);
printf(“The Entered No Is:%f”,a);
getch();
}
#include<stdio.h>
#include<conio.h>
void main()
{
clrscr();
char a;
printf(“enter the character”):
scanf(“%c”,&a);
printf(“The Entered Character Is:%c”,a);
getch();
}
#include<stdio.h>
#include<conio>
void main()
{
int a,b,c;
clrscr();
printf(“enter the numbers”);
scanf(“%d%d”,&a,&b);
c=a(+or-or*or/)b;
printf(“%d”,c);
getch();
}
No comments:
Post a Comment