Write a program to that performs as calculator ( addition, multiplication, division, subtraction).

#include<stdio.h>
int main()
{
int i,j;
printf("\n Enter 1st Integer Value :");
scanf("%d",&amp;i);
printf("\n Enter 2nd Integer Value :");
scanf("%d",&amp;j);
printf("\n addition : %d",i+j);
printf("\n multiplication : %d",i*j);
printf("\n division : %d",i/j);
printf("\n subtraction : %d",i-j);
return 0;
}

Next practical link : Practical 2

Categories: GTU PRACTICALSPPS

0 Comments

Leave a Reply

Your email address will not be published. Required fields are marked *