void main()
{
int i=0,n,n2,n3;
clrscr();
loop:
printf("Enter the first Number:");
scanf("%d",&n);
i=i+1;
if (i<5)
goto loop;
i=0;
loop1:
printf("\n\tEnter the second Number:");
scanf("%d",&n2);
i=i+1;
if(i<10)
goto loop1;
i=0;
loop2:
printf("\n\n\t\tEnter the Third Number:");
scanf("%d",&n3);
i=i+1;
if(i<2)
goto loop2;
getch();
}
#vpsinghrajput
1:02 AM
void main()
{
int a,b,p;
int *p1;
int *p2;
clrscr();
printf("\nEnter the The First No::");
scanf("%d",&a);
printf("\nEnter the Second No::");
scanf("%d",&b);
p1=&a;
p2=&b;
printf("\n\nAddress of the First Variable a is :: %u",p1);
printf("\n\nAddress of the Second Variable a is :: %u",p2);
printf("\n\n\nValue Stored of the First Address is :: %d",*p1);
printf("\n\n\nValue Stored of the Second Address is :: %d",*p2);
p=*p1+ *p2;
printf("\n\n\nThe sume Variable is :: %d",p);
p=*p1-*p2;
printf("\t\n\n\nThe subtract Variable is :: %d",p);
p=*p1* *p2;
printf("\t\n\n\n\nThe Multiply Variable is :: %d",p);
p=*p1/ *p2;
printf("\t\n\n\n\n\nThe Divide Variable is :: %d",p);
getch();
}
{
int a,b,p;
int *p1;
int *p2;
clrscr();
printf("\nEnter the The First No::");
scanf("%d",&a);
printf("\nEnter the Second No::");
scanf("%d",&b);
p1=&a;
p2=&b;
printf("\n\nAddress of the First Variable a is :: %u",p1);
printf("\n\nAddress of the Second Variable a is :: %u",p2);
printf("\n\n\nValue Stored of the First Address is :: %d",*p1);
printf("\n\n\nValue Stored of the Second Address is :: %d",*p2);
p=*p1+ *p2;
printf("\n\n\nThe sume Variable is :: %d",p);
p=*p1-*p2;
printf("\t\n\n\nThe subtract Variable is :: %d",p);
p=*p1* *p2;
printf("\t\n\n\n\nThe Multiply Variable is :: %d",p);
p=*p1/ *p2;
printf("\t\n\n\n\n\nThe Divide Variable is :: %d",p);
getch();
}
Subscribe to:
Posts (Atom)