You are on page 1of 1

include<stdio.

h>
#include<conio.h>
void main()
{
int a,b,sum,mult,sub;
clrscr();
printf("enter any any two no");
scanf("%d%d",&a,&b);
sum=a+b;
printf("value of sum=%d\n",sum);
mult=a*b;
printf("value of multi=%d\n",mult);
sub=a-b;
printf("value of sub=%d\n",sub);
getch();
}

#include<stdio.h>
#include<conio.h>
main()
{
int s1,s2,s3,s4,s5,sum;
float per;
clrscr();
printf("enter the five no no\n");
scanf("%d%d%d%d%d",&s1,&s2,&s3,&s4,&s5);
sum=(s1+s2+s3+s4+s5);
printf("total no of subject %d\n",sum);
per=(sum*100)/500;
printf("percentage of=%d\n",per);
getch();
}

#include<stdio.h>
#include<conio.h>
void main()
{
int a,b,sum,mult,sub;
clrscr();
printf("enter any any two no");
scanf("%d%d",&a,&b);
sum=a+b;
printf("value of sum=%d\n",sum);
mult=a*b;
printf("value of multi=%d\n",mult);
sub=a-b;
printf("value of sub=%d\n",sub);
getch();
}

You might also like