Ask Question

Name:
Title:
Your Question:

Answer Question

Name:
Your Answer:
User Submitted Source Code!


Description:
  quiz rounds
Language: C/C++
Code:
#include <stdio.h>
int main()
{
     int A;
     int C;
     int E;
     int P;
     int T;
     int H;
     int Z;

     printf("Enter Number Of Easy Questions:");
     scanf_s("%d", &E);
     printf("Enter Number Of Hard Questions:");
     scanf_s("%d", &H);
     printf("Enter Number Of Adults:");
     scanf_s("%d", &A);
     printf("Enter Number Of Children:");
     scanf_s("%d", &C);

     P = (A + (2 * C));

     T = E / P;

     Z = H / A;

     printf("Number Of Easy Rounds:%d\n", 2 * T);

     printf("Number Of Hard Rounds:%d\n", Z);
}
Comments: