2. Assignment 2
#include<stdio.h>
void main()
{
//int a=4,b=9,c;
//c=a+b;
//printf("%d\n",c);
/*
int a=91,r,r1;
r=a%10;
a=a/10;
r1=a%10;
a=a/10;
a=a*10+r;
a=a*10+r1;
printf("%d/n",a);
*/
/*
int a=3,b=4,c=5,d;
d=a+b+c;
printf("%d\n",d);
*/
/*
int i= 4567;
i=i/10;
i=i/10;
printf("%d\n",i);
*/
/*
int a=9,b=3,c;
c=(a*a)+(2*a*b)+(b*b);
printf("%d\n",c);
*/
int a=2,b=3,c;
c=(a*a*a)+(3*a*a*b)+(3*a*b*b)+(b*b*b);
printf("%d\n",c);
}
Comments
Post a Comment