View Single Post
Old 02-09-2007, 04:49 PM   #3 (permalink)
max_demon
IM AS MAD AS HELL!!
 
max_demon's Avatar
 
Join Date: Oct 2006
Location: localhost
Posts: 1,618
Talking Re: Post ur C/C++ Programs Here

My Program to calculate Addition

Code:
#include <stdlib.h>
main()
{
float a,b,c,total,multiply,add,input;
printf("Welcome to Demon Calculator \n\n");
printf("Enter the values-\n\n");
printf("a:");
scanf("%f",&a);
printf("b:");
scanf("%f",&b);
printf("c:");
scanf("%f",&c);

total=a*b*c;
if (total>80000)
printf("Meri Marzi , tu khud solve kar.\a\a\a\a\a\a\a\a\a\n\n");
else
printf("The answer is %f\n\n\a\a",total);
system("pause");
}
__________________
When someone dies in the grip of a powerful rage... a curse is born.

Kayako Saeki: Croakkkkkkkkkkkkkkkkkkkkk!
max_demon is offline