Write a C program to find out any values add, mul, division, remainder, sub. - CodeTextPro | Free Web Tutorial

Codetextpro Provides free Web tutorial, HTML, CSS, C, C++, Java, JavaScript, PHP, MySql, Python, Program, Programming Notes, Programming Questions and more.

Programming

Saturday, January 5, 2019

Write a C program to find out any values add, mul, division, remainder, sub.

Find out any values add, mul, division, remainder, sub.

#include<stdio.h>
#include<conio.h>
main()
{
int a,b,p,q,r,s,t;
printf("please enter the two values");
scanf("%d  %d",&a,&b);
p=a+b;
q=a*b;
r=a/b;
s=a%b;
t=a-b;
printf("add=%d mul=%d divison=%d remainder=%d sub=%d",p,q,r,s,t);
getch();
}

No comments:

Post a Comment