Forum

Number Of Page View:100,000+/Months
LOGIN |New User

Reply

How to write a program in c to print its own code?
#include<stdio.h>
#include<conio.h>
void main()
{
int x,i,c;
char msg[20];
printf("enter the massage");
scanf("%s",msg);
printf("enter the number");
scanf("%d",&x);
for(i=1;i<x;i++)
{
if(x==0)
{
c++;
}}
if(c==2)
{
printf("The massage is %s",msg);
}
else
{
return;
}
getch();
}