Functionality Difference Between for loop & while loop
The “for loop” loops from one number to another number and increases by a specified value each time.
It uses the following Structure:-
for(start value; continue or end condition; increase value statement)
let we wil…Read More
write a program of factorial without using function.
#write a program of factorial of any no using loops.
#write a program of factorial without using function.
This is the basic program of factorial
Now when we run our code we have as a output
…Read More
Pascal triangle Program
#Write a program in c for the Pascal Triangle .
CODE
#include<stdio.h>long factorial(int);int main(){int i, n, c;printf("Enter the number of rows you wish to see in pascal triangle\n");scanf("%d",&n);for ( i = 0 …Read More
0 comments:
Post a Comment