Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
bgColor#FFCCCC
#include<stdio.h>

void main()
{
    short a;=533;
    int b;=6789;
    long c;=3269326;

    float d;
    double e;
    double f;

    a=533;
    b=6789;
    c=466438237;
    
    d=a/7;
    e=b/30;
    f=c/789;

    printf("Value of d is %f\n", d);
    printf("Value of e is %f\n", e);
    printf("Value of f is %f\n", f);
}

...

Code Block
bgColor#ccccff
{code:bgColor=#FFCCCC}
#include<stdio.h>

void main()
{
    short a;=533;
    int b;=6789;
    long c;=3269326;

    float d;
    double e;
    double f;

    a=533;
    b=6789;
    c=466438237;
    
    d=a/7.0f;
    e=b/30.0f;
    f=c/789.0f;

    printf("Value of d is %f\n", d);
    printf("Value of e is %f\n", e);
    printf("Value of f is %f\n", f);
}

...

Code Block
bgColor#ccccff
{code:bgColor=#FFCCCC}
#include<stdio.h>

void main()
{
    short a;=533;
    int b;=6789;
    long c;=3269326;

    float d;
    double e;
    double f;

    a=533;
    b=6789;
    c=466438237;
    
    d=a;
    e=b;
    f=c;
    d/=7;
    e/=30;
    f/=789;

    printf("Value of d is %f\n", d);
    printf("Value of e is %f\n", e);
    printf("Value of f is %f\n", f);
}

...