c++ lab sheet kuppiya- 6

24. Write a program that inputs five numbers and determines and prints the number of negative numbers input, the number of positive numbers input and the number of zeros input. #include <iostream.h> int main() { int a,b,c,d,e,tn,tz,tp; tn=0; tz=0; tp=0; cout<<“Enter Number: “; cin>>a; cout<<“Enter Number: “; cin>>b; cout<<“Enter Number: “; cin>>c; cout<<“Enter Number: “;[…]

c++ lab sheet kuppiya- 4

10.Write a program to input 2 integers and find the smaller number #include<iostream.h> int main() { int a; int b; cout<<“Please enter your 1st number: “; cin>>a; cout<<“Please enter your 2nd number: “; cin>>b; if(a<b) { cout<<“The smaller is…………..: “<<a<<endl; } else { cout<<“The smaller is…………..: “<<b<<endl; } return 0; } 11.Write c++ program to[…]

c++ lab sheet kuppiya- 3

Lab Sheet 03 1. Write a program that prints following song in console window. Twinkle, twinkle, little star, How I wonder what you are. Up above the world so high, Like a diamond in the sky. #include <iostream.h> int main() { cout<<“Twinkle, twinkle, little star,”<<endl; cout<<“How I wonder what you are.”<<endl; cout<<“Up above the world[…]