Write a C program to print all prime no.(1-100).
#include<stdio.h> #include<conio.h> main() { int i,j,n; printf("\n The prime numbers are(1-100)"); for(i=2;i<=100;i++) { for(j=1;j<=i;j++) { if(i%j==0) n++; } if(n==2) printf(" %d",i); n=0; } getch(); }
Output:
Write a C program to find both the largest and smallest number in list of integers.
What is SRS? Write the features of SRS.
Discuss the ACID properties of transaction.