D

@Dheerendra

20feb)class-06/.c

C
3 years ago
/*Print pattern using nested for loop A B B C C C D D D D E E E E E */ //ascii value of Z=90 #include<stdio.h> int main()

20feb)class-05/.c

C
3 years ago
/*Print pattern using nested for loop 1 1 1 1 1 2 2 2 2 2 3 3 3 3 3 4 4 4 4 4 5 5 5 5 5 */ #include<stdio.h> int main() {

20feb)class-04/.c

C
3 years ago
/*Print pattern using nested for loop 1 1 1 1 1 2 2 2 2 2 3 3 3 3 3 4 4 4 4 4 5 5 5 5 5 */ #include<stdio.h> int main() {

20feb)class-03/.c

C
3 years ago
/*Print pattern using nested for loop ##### #### ### ## # */ #include<stdio.h> int main() {

20feb)class-02/.c

C
3 years ago
//C program to print star pattern /* # ## ### #### ##### */ #include <stdio.h> int main(){

20feb)class-01/.c

C
3 years ago
//Print tables upto a number using nested for loop #include<stdio.h> int main() { int i,j,k ; printf("Enter the number: "); scanf("%d", &k); printf("\nthe tables from 1 to %d: \n",k); for(i=1; i<=k; i++){ for(j=1; j<=10; j++){

HCWeek03\02.c

C
3 years ago
// Factorial of a number #include <stdio.h> #include <string.h> #include <math.h> #include <stdlib.h> int main() { int n,i=1,prod=1; scanf("%d",&n); for(;i<=n;i++)

HCWeek03\01.c

C
3 years ago
#include <stdio.h> #include <string.h> #include <math.h> #include <stdlib.h> int main() { int i,L,N,W,H; scanf("%d %d ",&L,&N); for(i=1;i<=N;i++)

#05)Table.c

C
3 years ago
//Program in C to display multiplication table of a input number using for loop #include <stdio.h> int main(){ int i=1,a; printf("Enter no. \n"); scanf("%d",&a); for(;i<=10;i++) { printf("%d * %d = %d\n",a,i,i*a); }

24)18\feb-12.c

C
3 years ago
//Find a number is palindrome or not using for loop #include<stdio.h> int main() { int n,d,o,sum=0; printf("Enter n= "); scanf("%d",&n); o=n; for(;n!=0;n=n/10) {

24)18\feb-11.c

C
3 years ago
//Reverse a number using for loop #include<stdio.h> int main() { int n,d,rev=0; printf("Enter n= \n"); scanf("%d",&n); for(;n!=0;n=n/10) { d=n%10;

24)18\feb-10.c

C
3 years ago
//Reverse a number using while loop #include<stdio.h> int main() { int n,d,rev=0; printf("Enter n= \n"); scanf("%d",&n); while(n!=0) { d=n%10;

24)18\feb-09.c

C
3 years ago
//Sum of all digits of a number using for loop #include<stdio.h> int main() { int n,d,sum=0; printf("Enter n= \n"); scanf("%d",&n); for(;n!=0;n=n/10) { d=n%10;

24)18\feb-08.c

C
3 years ago
//Sum of all digits of a number using while loop #include<stdio.h> int main() { int n,d,sum=0; printf("Enter n= \n"); scanf("%d",&n); while(n!=0) { d=n%10;

24)18\feb-07.c

C
3 years ago
//Count the total number of digits in a number using while loop #include<stdio.h> int main() { int n,count=0; printf("Enter n= \n"); scanf("%d",&n); while(n!=0) { count++;

24)18\feb-06.c

C
3 years ago
//Display the factorial of a number using for loop #include<stdio.h> int main() { int n,i,ft=1; printf("Enter n= "); scanf("%d",&n); for(i=1;i<=n;i++) { ft=ft*i;

24)18\feb-05.c

C
3 years ago
//Display the factorial of a number using while loop #include<stdio.h> int main() { int n,i=1,ft=1; printf("Enter n= \n"); scanf("%d",&n); while(i<=n) { ft=ft*i;

24)18\feb-04.c

C
3 years ago
//Count all even numbers from m to n using for loop #include<stdio.h> int main() { int m,n,count=0; printf("Enter m= \n"); scanf("%d",&m); printf("Enter n= \n"); scanf("%d",&n); for(;m<=n;m++)

24)18\feb-03.c

C
3 years ago
//Count all even numbers from m to n using while loop #include<stdio.h> int main() { int m,n,count=0; printf("Enter m= \n"); scanf("%d",&m); printf("Enter n= \n"); scanf("%d\n",&n); printf("m = %d, n=%d\n",m,n);

24)18\feb-02.c

C
3 years ago
//sum of all numbers from 1 to n using for loop #include<stdio.h> int main() { int n,sum=0,i; printf("Enter n = \n"); scanf("%d",&n); for(i=1;i<=n;i++) sum=sum+i;