Popular posts from this blog
WEB PROGRAMMING Important Questions:
WEB PROGRAMMING Important Questions: 1 1. Discuss in detail about the basics of HTML and structure of HTML 2. List and explain about paired and unpaired tags 3. Explain about marquee tag 4. Difference between DIV & SPAN 5. Explain various form control in HTML 6. Explain about frames and frames set 7. Explain about good web designing principals 8. Explain table related tags 9. Explain about hyperlink and anchor tags with examples 10. What are window objects 11. Wh...
C & C++ LAB PROGRAMS
C-LAB PROGRAMS 1. Program for Arithmetic operator #include<stdio.h> int main( ) { int a = 9,b = 4, c; c = a+b; printf("a+b = %d \n",c); c = a-b; printf("a-b = %d \n",c); c = a*b; printf("a*b = %d \n",c); c=a/b; printf("a/b = %d \n",c); c=a%b; printf("Remainder when a divided by b = %d \n",c); return 0; } 2. Program for Armstrong Number #include<stdio.h> int main( ) { int num,r,sum=0, temp; printf("Enter a number: "); scanf("%d",&num); temp=num; while(num!=0) { r=num%10; num=num/10; sum=sum+(r*r*r); } if(sum==temp) printf("%d is an Armstrong number",temp); else printf("%d is not an Armstrong number",temp); return 0; } 3. Program For Largest and smallest element in an array #include<stdio.h> int main(...


Comments
Post a Comment