Posts
C & C++ LAB PROGRAMS
- Get link
- X
- Other Apps
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(...
Web-Technology Lab Programs
- Get link
- X
- Other Apps
<html> <body> <script type="text/javascript"> var a = 33; var b = 10; var c = "Test"; var linebreak = "<br />"; document.write("a + b = "); result = a + b; document.write(result); document.write(linebreak); document.write("a - b = "); result = a - b; document.write(result); document.write(linebreak); document.write("a / b = "); result = a / b; document.write(result); document.write(linebreak); document.write("a % b = "); result = a % b; document.write(result); document.write(linebreak); document.write("a + b + c = "); result = a + b + c; document.write(result); document.write(linebreak); a = a++; document.write("a++ = "); result = a++; document.write(result); document.write(linebreak); b = b--; document.write("b-- = "); result = b--; document.write(result); document.write(linebreak); </s...
MY INSPIRATION AND MY FUTURE HERO
- Get link
- X
- Other Apps
A. P. J. Abdul Kalam Former President of India Avul Pakir Jainulabdeen "A. P. J." Abdul Kalam /ˈæbdʊl kəˈlɑːm/; was the 11th President of India from 2002 to 2007. Wikiped ia Born : October 15, 1931, Rameswaram, India Died : July 27, 2015, Shillong, India Full name : Avul Pakir Jainulabdeen Abdul Kalam Awards : Bharat Ratna , Padma Vibhushan , Hoover Medal , More Siblings : Kasim Mohammed , Asim Zohra , Mohammed Muthu Meera Lebbai Maraikayar , Mustafa Kamal