Computer Science, asked by siripraveen, 3 months ago

Write a C++ program to input price and quantity of a product. Find and display the
amount to be paid.

Answers

Answered by avitaylor101
1

Explanation:

#include <cstdlib>

#include <pthread.h>

using namespace std;

#define NUM_THREADS 5

void *PrintHello(void *threadid) {

  long tid;

  tid = (long)threadid;

  printf("Hello World! Thread ID, %d\n", tid);

  pthread_exit(NULL);

}

int main () {

  pthread_t threads[NUM_THREADS];

  int rc;

  int i;

  for( i = 0; i < NUM_THREADS; i++ ) {

     cout << "main() : creating thread, " << i << endl;

Answered by mohammedfatahuddin
0

Answer:

#include <iostream>

using namespace std;

int main ()

{

   int price, quantity, amount;

   price = $25

   quantity = $15

   amount = price * quantity;

   

   cout << “The total amount to be paid is” << amount << endl;

   return 0;

}

Please give Branliest rank if this helped you.

Similar questions