Nisaidieni swali hili la programming

Nisaidieni swali hili la programming

JF answering machines. Congratulations for killing our Edu!
 
here are the C code

Code:
#include <stdio.h>
int main()
{
int a;
    for (a = 1; a<=8; a++)
    {
    int     sum=a+a,product=a*a;
        printf(" %d + %d = %d\n ",a,a,sum);
        printf(" %d * %d = %d\n",a,a,product);
    }
}
 
  • Thanks
Reactions: Paa
here are the C code

Code:
#include <stdio.h>
int main()
{
int a;
    for (a = 1; a<=8; a++)
    {
    int     sum=a+a,product=a*a;
        printf(" %d + %d = %d\n ",a,a,sum);
        printf(" %d * %d = %d\n",a,a,product);
    }
}
Output is wrong.
 
here are the C code

Code:
#include <stdio.h>
int main()
{
int a;
    for (a = 1; a<=8; a++)
    {
    int     sum=a+a,product=a*a;
        printf(" %d + %d = %d\n ",a,a,sum);
        printf(" %d * %d = %d\n",a,a,product);
    }
}
Shukran, It works
 

Similar Discussions

Back
Top Bottom