Tuesday, August 19, 2014

C PROGRAM TO TAKE ANY TWO NUMBER & PERFORMED ARITHMETICAL OPERATION

#include<stdio.h>
#include<conio.h>
void main()
{
 int a,b,r,s,m,d,rem;
 clrscr();
 printf("\nEnter Any First Number : ");
 scanf("%d",&a);
 printf("\nEnter Any Second Number : ");
 scanf("%d",&b);
 r=a+b;
 m=a*b;
 s=a-b;
 d=a/b;
 rem=a%b;
 printf("\nUr  Number1 = %d",a);
 printf("\nUr  Number2 = %d",b);
 printf("\n----------------------");
 printf("\nAddition = %d",r);
 printf("\nMultipliction = %d",m);
 printf("\nDivision = %d",d);
 printf("\nSubstraction = %d",s);
 printf("\nRemainder = %d",rem);
 getch();
}





No comments:

Post a Comment

JAC Board Computer || IIT 2025 || Introductory Information Technology || Class 10 || Practical Examination 2025

Marks Division HOE 30 Marks IT Application Report File 20 Marks Viva - Voce 10 Marks 1) Write an HTML code to generate a web p...