1 777
Subscribers
-224 hours
-147 days
-3630 days
Posts Archive
1 777
//a program to search a number from the array
#include <iostream>
using namespace std;
int main()
{
int rollno[10]={13,34,46,56,35,87,54,9,22,23};
int r,m=0;
cout <<"rollno is given below as follows: \n";
for(int i=0;i<10;i++){
cout <<rollno[i] <<" ";
}
cout <<"\n enter your rollno from the given: \n";
cin >>r;
for(int i=0;i<10;i++)
{
if(r==rollno[i]){
cout <<"your rollno is found at: " << i+1;
m=1;
}
}if(m==0){
cout <<"rollno is not found!";
}
return 0;
}
https://t.me/PROGRAMINGLANGUAGES1
1 777
look at the given choices and choose the incorrect alternative about function.
1 777
Which one of the following unconditional selection statements is used outside a loop?,...
1 777
A palidrome is a number that ββββββ- βββββββββββββ-
1 777
[ Video ]
let's invite you nice youtube channel for learning code in Amharic(if you do not know).
βΌοΈNOT βοΈ SPONSERED PROMOTIONπ
π
1 777
@uestion from pointerππΏβ
#include <iostream>
using namespace std;
int main() {
int value1 = 6, value2=14;
int *p1 , *p2;
p1=&value1;
p2 =&value2;
*p1 = 10;
*p2 = *p1;
p1 = p2;
*p1=20;
cout Β«" the value of value1 is: " Β« value1 Β« endl;
cout Β«" the value of value2 is: " Β« value2 Β« endl;
}
what is the output of this c++ code Is: https://t.me/PROGRAMINGLANGUAGES1/152
1 777
//C++ program for converting degree Celsius into Fahrenheit and vice versa
#include<iostream>
using namespace std;
int main()
{
float fahr, cel;
char option;
cout << "Choose from following option:" << endl;
cout << "1. Celsius to Fahrenheit." << endl;
cout << "2. Fahrenheit to Celsius." << endl;
cin >> option;
//option for converting celsius into fahernheit
if (option == '1')
{
cout << "Enter the temperature in Celsius: ";
cin >> cel;
fahr = (1.8 * cel) + 32.0; //temperature conversion formula
cout << "\nTemperature in degree Fahrenheit: " << fahr << " F" << endl;
}
//option for converting Fahrenheit into Celsius
else if (option == '2')
{
cout << "Enter the temperature in Fahrenheit: ";
cin >> fahr;
cel = (fahr - 32) / 1.8; //temperature conversion formula
cout << "\nTemperature in degree Celsius: " << cel << " C" << endl;
}
else
cout << "Error Wrong Input." << endl;
return 0;
https://t.me/PROGRAMINGLANGUAGES1
Available now! Telegram Research 2025 β the year's key insights 
