Computer Science, asked by amritabhattach62, 30 days ago

1) Write a Qbasic program to take the length and breadth of a rectangle from the user as input and find the area and perimeter of the rectangle.

2)Write a Qbasic program to take two numbers from the user as input and find the quotient and remainder​.

Answers

Answered by Sanskriti2rai
1

Answer:

1) Rem AREA OF RECTANGLE

CLS

INPUT "LENGTH ";L

INPUT "WIDHT"; B

A= L * B

PRINT " AREA PF RECTANGLE "; A

END

2)#include <iostream>

using namespace std;

int main()

{    

  int divisor, dividend, quotient, remainder;

  cout << "Enter dividend: ";

  cin >> dividend;

  cout << "Enter divisor: ";

  cin >> divisor;

  quotient = dividend / divisor;

  remainder = dividend % divisor;

  cout << "Quotient = " << quotient << endl;

  cout << "Remainder = " << remainder;

  return 0;

}

if this program helps u mark as brainleist

Similar questions