#include<stdio.h>
int main()
{
int Value1, Value2;
float Sub, Sum, Mul, Div;
printf("Enter Value1 :");
scanf("%.2f", &Value1);
printf("Enter Value2 :");
scanf("%.2f", &Value2);
Sum = Value1 + Value2;
Sub = Value1 - Value2;
Mul = Value1 * Value2;
Div = Value1 / Value2;
printf("\n%.2f + %.2f = %.2f", Value1, Value2, Sum);
printf("\n%.2f - %.2f = %.2f", Value1, Value2, Sub);
printf("\n%.2f * %.2f = %.2f", Value1, Value2, Mul);
printf("\n%.2f / %.2f = %.2f", Value1, Value2, Div);
return 0;
}
int main()
{
int Value1, Value2;
float Sub, Sum, Mul, Div;
printf("Enter Value1 :");
scanf("%.2f", &Value1);
printf("Enter Value2 :");
scanf("%.2f", &Value2);
Sum = Value1 + Value2;
Sub = Value1 - Value2;
Mul = Value1 * Value2;
Div = Value1 / Value2;
printf("\n%.2f + %.2f = %.2f", Value1, Value2, Sum);
printf("\n%.2f - %.2f = %.2f", Value1, Value2, Sub);
printf("\n%.2f * %.2f = %.2f", Value1, Value2, Mul);
printf("\n%.2f / %.2f = %.2f", Value1, Value2, Div);
return 0;
}
কোন মন্তব্য নেই:
একটি মন্তব্য পোস্ট করুন