#include<stdio.h> void main() { int choice; printf(“choose a number from 1 to 7:”); scanf(“%d”,&choice); switch(choice) { case 1: printf(“sunday”); break; …
write a program to checks whether the number entered by user is exactly divisible by 5 but not by 11.
//write a program to checks whether the number entered by user is exactly divisible by 5 but not by 11. …
Write a C program to sort integer values in descending order
//2063.2.a.Write a C program to sort integer values in descending order. #include<stdio.h> void main() { int a[20],i,j,t,n; printf(“enter the size …
Concept of Pointer(Part-2)
//pointer2 #include<stdio.h> void main() { int *p[10]; //it is an array of 10 pointers that is there are 10 pointer …
C Program to swap two numbers showing call by reference.
//Application of Pointer variable #include<stdio.h> void swap(int *p,int *q); void main() { int a,b; printf(“enter the value of two variable …
Extended Concept of Pointer
//pointer #include<stdio.h> void main() { int a, *b, **c, ***d; a=2000; b=&a; c=&b; d=&c; printf(“%d\t%d\t%d\t%d”,a,b,c,d); } Here ‘a‘ is simple …
HSEB-2066(2.a)
//2066 //Q.2.a.Write a Program to store name and mark o 20 students. Sort the data according with mark in descending …
HSEB-2062
//2062 //Q1.a. write a c prgram to print the 10 positive integers and their factorials. #include<stdio.h> #define max 10 void …
HSEB-2061
//HSEB or NEB//year 2061(2004)/*Q.1(a).The marks obtained by studen in 7 different subjects are entered through the keyboard. The student gets …
HCF and LCM
//HCF and LCM #include<stdio.h> void main() { int n1,n2,a,b,LCM,HCF; printf(“enter the value of two numbers:”); scanf(“%d%d”,&n1,&n2); a=n1; b=n2; while(n1!=n2) { …
