c++ program for division of 2 number

c++ program for division  of a number



Enter a 1st number    21
Enter a 2nd number   3
Division of 21 and 3 is 7

Enter a 1st number   42
Enter a 2nd number   4
Division of 42 and 4 is 10

Enter a 1st number    12
Enter a 2nd number  15
Division of 12 and 15 is 0


Change 'div' variable from int to float to display answer in decimal value
int num1, num2;
float div

Other part of program is same

One Comment

Add your comments here

Back to Top