Sie sind auf Seite 1von 4

Programming in C

THURSDAY, 13 DECEMBER 2012

Shout C
Like You like this.

C program to find all Armstrong number between 1 and 500.


If sum of cubes of each digit of the number is equal to the number itself, then the number is called an Armstrong number. For example : 153 = (1*1*1)+(5*5*5)+(3*3*3) 1 2 3 4 5 6 7 8 9 1 0 1 1 1 2 1 3 1 4 1 5 1 6 1 7 #nld<ti.> icuesdoh #nld<oi.> icuecnoh mi ( an ) { itijklmn n ,,,,,; fr(=;<50i+ o i1i=0;+) { ji1; =%0 ki1; =/0 lk1; =%0 mk1; =/0 n(**)(**)(**) =mmm+lll+jjj; i (=i f n=) pit(% \"i; rnf"d n,) } gth) ec(; }
?

BLOG ARCHIVE

12 (12) Dec (12) C program to find all Armstrong number between 1 a... C program to find the value of 'a' to the power 'b... C program to find factorial value of any number C program to calculate overtime pay of 10 employee... C program to find whether number is prime or not C program to find square with infinite loop C program to print table as "i = 1 j = 1 and a*b =...

OUTPUT

C program to print numbers between 0 to 9 C program to find simple interest for three times C program to reverse any five digit number

Posted by Nishant Bhakta at 13:04

No comments:

Recommend this on Google

C program to find even and odd integer C program to find out the percentage marks obtaine...

C program to find the value of 'a' to the power 'b' where a & b input by keyboard
1 2 3 4 5 6 7 8 9 1 0 1 1 1 2 1 3 1 4 1 5 1 6 1 7 #nld<ti.> icuesdoh #nld<oi.> icuecnoh mi ( an ) { itijkl n ,,,; pit (etrfrtnme "; rnf "ne is ubr ) saf(%"&) cn "d,i; pit (\etrscn nme "; rnf "nne eod ubr ) saf(%"&) cn "d,j; li =; fr(=;<;+) o k1kjk+ { iil =*; } pit (\% t tepwr% =%"lji; rnf "nd o h oe d d,,,) gth(; ec ) }
?

OUTPUT

Posted by Nishant Bhakta at 12:56

No comments:

Recommend this on Google

C program to find factorial value of any number


1 2 3 4 5 6 7 8 9 1 0 1 1 1 2 1 3 1 4 1 5 #nld<ti.> icuesdoh #nld<oi.> icuecnoh mi( an) { itijk n ,,; pit (etrnme frfcoil"; rnf "ne ubr o atra ) saf(%"&) cn "d,i; ki =; fr(=;<;+) o j2jkj+ { iij =*; } pit(\fcoil%" i; rnf"natra d, ) gth(; ec ) } OUTPUT
?

Posted by Nishant Bhakta at 12:52

No comments:

Recommend this on Google

C program to calculate overtime pay of 10 employees


Over time is paid at the rate of Rs.12.00 per hour for every hour worked above 40 hours. 1 2 3 4 5 6 7 8 9 1 0 1 1 1 2 1 3 1 4 1 5 1 6 1 7 #nld<ti.> icuesdoh #nld<oi.> icuecnoh mi( an) { iti1t; n =,t wie( < 1) hl i = 0 { pit (etrepyyesttltm"; rnf "ne mloe' oa ie) saf(%"&t; cn "d,t) i (t>4) f t 0 pit (oetm pyi =% \ \" 1*t-0) rnf "vrie a s d n n, 2(t4); es le pit (n oetm \ \"; rnf "o vrie n n) i+ +; } gth(; ec ) } OUTPUT
?

Posted by Nishant Bhakta at 12:48

No comments:

Recommend this on Google

C program to find whether number is prime or not


1 2 3 4 5 6 7 8 9 1 0 1 1 1 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 2 0 #nld<ti.> icuesdoh #nld<oi.> icuecnoh mi ( an ) { itij n ,; pit (etrnme "; rnf "ne ubr ) saf"d,j; cn(%"&) fr(=;<; o i2ij) { i (%=0 f ji=) { pit(\nme i ntpie) rnf"nubr s o rm"; bek ra; } ii1 =+; } i (=i f j=) pit(\nme i pie) rnf"nubr s rm"; gth) ec(; } OUTPUT
?

Posted by Nishant Bhakta at 12:42

No comments:

Recommend this on Google

C program to find square with infinite loop


1 2 3 4 5 6 7 8 9 1 0 1 1 1 2 1 3 1 4 1 5 1 6 1 7
? #nld<ti.> icuesdoh #nld<oi.> icuecnoh mi( an) { itij n ,; ca oh='' hr t y; wie(t = '' hl oh = y) { pit(\etrnme "; rnf"nne ubr ) saf(%"&) cn "d,i; jii =*; pit (\suei =% \"j; rnf "nqr s d n,) pit(\wn aohrnme t suepesyn:"; rnf"nat nte ubr o qr rs / ) saf(%" &t) cn "s, oh; } gth) ec(; }

OUTPUT

Posted by Nishant Bhakta at 12:37

No comments:

Recommend this on Google

C program to print table as "i = 1 j = 1 and a*b = 1" until i=3 & j=5
1 2 3 4 5 6 7 8 9 1 0 1 1 1 2 1 3 1 4
? #nld<ti.> icuesdoh #nld<oi.> icuecnoh mi( an) { iti j n , ; fr(=;i+3) o i0 +<; { fr(=;+j=; o j0 +<5) { pit (i=% j=% adab=% \"i j ij; rnf " d d n * d n,, , *) } } gth(; ec ) }

OUTPUT

Posted by Nishant Bhakta at 12:26

No comments:

Recommend this on Google

Home
Subscribe to: Posts (Atom)

Older Posts

Picture Window template. Powered by Blogger.

Das könnte Ihnen auch gefallen