1. Write a c program to reverse any number.

2. Write a c program to find out sum of digit of given number.

2. Write a c program to find out sum of digit of given number.

10. Write a c program to find out NCR factor of given number.

11. How to convert string to int without using library functions in c

12. Program in c to print 1 to 100 without using loop

13. C program for swapping of two numbers

14. Program to find largest of n numbers in c

15. Split number into digits in c programming

16. C program to count number of digits in a number

11. How to convert string to int without using library functions in c

12. Program in c to print 1 to 100 without using loop

13. C program for swapping of two numbers

14. Program to find largest of n numbers in c

15. Split number into digits in c programming

16. C program to count number of digits in a number

Helpful post...thank you

ReplyDeletethis program shows segmentation fault in linux...

ReplyDeleteThanks alot my brother for helping us....................

ReplyDeletethanx

ReplyDeleteIt is realy very helpfull for students

ReplyDeletequestns bagunayi boss!!!

ReplyDeleteThanks

ReplyDeleteThis comment has been removed by the author.

ReplyDeletehelp me to calculate the power by using for loop

ReplyDelete#include

Deleteusing namespace std;

int main()

{

int n,p,temp,i;

int total=0;

cout<<"Enter the number";

cin>>n;

cout<<"power of ";

cin>>p;

temp = n;

for(i=1;i<p;i++)

{

total = temp*n;

temp = total;

}

cout<<temp;

system("PAUSE");

cin.get();

return 0;

}

#include

Deleteint main()

{

int num;

int pow;

int sum =1;

printf("\n enter the number \n");

scanf("%d",&num);

printf("\n enter the power of \n");

scanf("%d",&pow);

fo(;pow;pow--)

sum = sum *num;

printf("\n sum = %d \n", sum);

}

very helpful

ReplyDeletewap to c language

ReplyDelete1

22

333

4444

55555

#include

Deletemain()

{

int i, j, k = 0;

for(i = 1; i <= 5; i++)

{

++k;

for(j = 1; j <= i; j++)

printf("%d",k);

printf("\n");

}

}

#include

Deletevoid main()

{

int n,i,j=1,k;

printf("enter n:");

scanf("%d",&n);

for(i=1;i<=n;i++)

{

for(k=1;k<=i;k++)

{

printf("%d",j);

}

printf("\n");

j++;

}

}

I=j=1:

Deletewhile(i<=1)

{

while(j<=i)

{

printf("%d",i);

}

printf("\n");

I++;

}

Program to enter the numbers till the user wants and at the end it should display the count of positive, negative and zeros entered.

ReplyDelete/****Program to input 10numbers from the user and display whether it is even or odd****/

ReplyDelete#include

#include

int main(void)

{

int number_of_terms=10;//Total number of input from user

int number[10];//Array to store the numbers given from users

int i;

printf("Enter 10 integers\n");

for(i=1;i<=10;i++)

scanf("%d",&number[i]);

i=1;

while(i!=(number_of_terms+1))

{

if(number[i]%2==0)

{

printf("%d is Even\n",number[i]);

}

else

{

printf("%d is Odd\n",number[i]);

}

i++;

}

getch();

return 0;

}

Can anyone tell how to return the square of any given number in c...without using math.h,looping mechanisms and * sign..and ya it is possible..not kidding

ReplyDeletex^2/m+x^5/m^3+x^8/m^5+x^11/m^7.............

ReplyDeleteplease help........

WAP in c to display follwing o/p....plz help

ReplyDelete*

* *

* * *

* * * *

* * * * *