Ask Question

Name:
Title:
Your Question:

Answer Question

Name:
Your Answer:
User Submitted Source Code!


Description:
  calc
Language: C/C++
Code:
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <conio.h>
int main(void)
{
    double Level;
    int i,u;
    double Sum=0;
    printf("_Input your Level, Enter_ :");
    scanf("%lf",&Level);
    printf("_Input your friends accept, Enter_ :");
    scanf("%d",&u);
    for(i=1;i<=u;i++)
        Sum += (round((pow(((12 + Level*0.252)*14), 1+Level*0.004)*i)/55))*10;
     printf("_Total Food will add more affter 12 hours_ :");
    printf("%.1lf",Sum);
 getch();
}
Comments: