Wednesday, October 30, 2019

Write a program to demonstrate arithmetic operators.(+,-,*,/,%)
#include<stdio.h>
#include<conio.h>
void main()
{
int a,b,c,d,e,f;
float g;
clrscr();
printf("input the a");
scanf("%d",&a);
printf("input the b");
scanf("%d",&b);
c=a+b;
d=a-b;
e=a*b;
f=a\b;
g=a%b;
printf("\n=%d",c);
printf("\n=%d",d);
printf("\n=%d",e);
printf("\n=%f",f);
printf("\n=%f",g);
getch();

8 comments:

2004 1.       A.   True or false:- 1.       The part of the computer that executes program instruction known as memory.- False 2.  ...