getprogramcode.com
Here you can request your programs and get solutions. Here You will get to know new tricks in progra
11/02/2016
Study Abroad Opportunities for Higher studies - Seminar and Education Fair in Gurgaon, Delhi and many more cities.
BOOK YOUR SEATS FOR FREE NOW!
long hcf(long, long )
int main ()
{
long x=10, y=5;
long gcd;
gcd=hcf (x, y);
printf ("GCD is : % ld", gcd);
}
long hcf (long a,long b)
{
if (b==0)
return a;
else
return hcf (b, a% b);
}
}
explain how this program execute?
in c program how store double type variable in scanf .
ex: double r;
printf(" Enter r value");
scanf("% lf", &r);
% lf is crct or not?
anyone can tell me?
extern int fun();
int fun();
what is the difference between in it?
Pls help look at this
Int main(void)
{
Printf("\n************");
For(into count = 1; count
main( )
{
int k = 35 ;
printf ( "\n%d %d %d", k == 35, k = 50, k > 40 ) ;
}
output : 0 50 0
k=50 will print s it is.
k>40 it means 35>40 this condition is false so it will print 0(zero).
but..
how cm k==35 --> 0 ??
can any1 xplain pls
Find out the error :-
main()
{
int a,b,n;
printf("enter two digits:-");
scanf("%d",&n);
scanf("%d",&a);
if(n>a)
printf("%d>%d is greater",n>a);
else
printf("%d>%d is greater",b>n);
return 0;
}
hello frndss..I have doubt..
main()
{
int a[5]={1,2,4,2,5};
a[5]=6;
printf{"a[5]=%d",a[5]);
getch();
}
o\p:a[5]=6
main( )
{
int k = 35 ;
printf ( "\n%d %d %d", k == 35, k = 50, k > 40 ) ;
}
output : 0 50 0
C program for Sum of two number using While LOOP
C program for Sum of two number using While LOOP | Add two numbers using while loop : The two numbers can be added using a while loop also. If you want to know more about the conditional control statement and looping then you should start experimenting rather doing straight things. Two numbers can be added using arithmetic numbers but can also be added without using arithmetic operators. There is also a method to add two numbers using recursion. There is yet another way which is similar to this way but in that you can add two numbers using FOR LOOP. See the code below for sum of numbers using while loop.
int main() {
int i = 10, j = 5;
while (j--)
{
i++; // i adds up the number of times j subtracts and when j becomes 0 condition becomes false and while loop ends
}
printf("Sum is : %d", i); //sum of i +j is stored in i
return (0);
}
Click here to claim your Sponsored Listing.
Category
Telephone
Website
Address
Getprogramcode. Com
Agra
282005