Ask Question

Name:
Title:
Your Question:

Answer Question

Name:
Your Answer:
User Submitted Source Code!


Description:
  prog
Language: C/C++
Code:
#include <stdio.h>
#include <conio.h>
#include <math.h>

int main() {
     int qty,dis;
     float rate,tot;
     printf("enter quantity and rate");
//     scanf("%d %f", &qty,&rate);
qty=10;
rate=5;
     if(qty>=1000)
     {printf("in if");
          dis=10;
          tot=(qty*rate)-(qty*rate*dis/100);}
          printf("total expenses= %f",tot);
     return 0;

}

          
Comments: