Thursday 29 June 2017

ALGEBRA MAGIC

#include
#include

int main()

 int x,y;
 printf("Think of a munber Between 60 and 100 .\nProvided The number should not consist of the values 0&1.\nPress Enter Key When Ready");
 getch();
 printf("\nNow add the number with its reverse.\neg.62+26\nif the number you thought was 62.\npress Enter when ready.");
 getch();
 printf("\nEnter the Middle value of your answer = ");
 scanf("%d",&x);
 y=100+(x*10)+(x-1);
 printf("The value you got is = %d",y);
 getch();
}

Run this and see the magic !!!!!!!

Tuesday 27 June 2017

More on printf

What will be the output of following code 

#include

int main()
{

         printf("%d",printf("computer"));

         return (0);

}