#include <iostream> using namespace std ; int main () { /*//Program to calculate the discount percentage of acutal cost as well as actuall price. int price = 90000; int discount_percentage = (90000/100)*7; int discounted_price= 90000-discount_percentage; cout <<discounted_price; return 0;*/ // Q- Priya wants to write a program to input marks in three subjects out of 100 and // calculate and display teh total marks and percentage . How should she do this task ? int ganit , science , social ; cout << "Enter the marks of...
#include <iostream> using namespace std ; int main (){ /* Q- Write a program where the user is asked to enter two integers ( divisor and dividend) and the quotient and the remainder of their divison is computed . ( Both divisor and dividend should be integers). int dividend, divisor, quotient , remainder; cout<<"Enter your dividend : "; cin>>dividend; cout<<"Enter your divisor : "; cin>>divisor; quotient = dividend/divisor; remainder = dividend%divisor; cout<<"The quotient is : "<<quotient<<endl <<"The rema...
Comments
Post a Comment