বৃহস্পতিবার, ২৭ নভেম্বর, ২০১৪

ICT Class6 , Page no 20, Problem solved

#include<stdio.h>

int main ()
{
    float x, y, z, a, b;     //Variable Declare//
    printf("ICT Class6 , Page no 20, Problem solved\n\n");
    //Work Start//
    printf("Enter your number : ");
    scanf("%f", & x);
    y = x+10;
    printf("1st Step:  %.2f + 10 = %.2f\n", x, y);
    z = y*2;
    printf("2nd Step:  %.2f * 2 = %.2f\n", y, z);
    a = z - x;
    printf("3rd Step:  %.2f - %.2f = %.2f\n", z, x, a);
    b = a - x;
    printf("4th Step:  %.2f - %.2f = %.2f\n\n", a, x, b);
    // Final result Output//
    printf("5th Step:  My memory is (outout) : %.2f Ans.\n\n", b);
    printf("Developed By Raihan Neshat");
    getch ();
    return 0;
}

Work

#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;
}

কোডব্লকস্ কী?

Codeblocks হলো একটি smart IDE ( Integrated Development Environment )।একটি IDE তে যা যা থাকে তা হলো Compiler, CodeBlocks (GCC) compiler এরউ...