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

CodeTextPro.com Provides - Web design, Technology gyan, Digital marketing, Online earnings, Seo, Adsense, Technology news, Motivation and inspiration, Latest Technology Affairs, Gadgets, Blogging

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