Posts

Showing posts from November, 2017

CODE ONLINE PLEASE VISIT ANY OF THE FOLLOWING....

TO FIND FACTORIAL OF A NUMBER

Image
TO FIND FACTORIAL OF A NUMBER a=int(input("ENTER THE NUMBER TO FIND FACTORIAL:")) fact=1 for i in range (1,a+1):                                                                                      Using C language.     fact=fact*i print"Factorial is",fact      OUTPUT ---------------------

TO FIND ODD NUMBERS UP TO N

Image
 TO FIND ODD NUMBERS UP TO N a=int(input("hello enter your input:"))                                                Using C programming i=0                                                                                                         for i in range(i,a+1):       r=(i-1)%2       if (r==0):           print(i)   OUTPUT             OUTPUT