//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
#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
🔥2
#QUESTION TO ANSWER IN C++
Write a program that prompts a user to enter the number of second elapsed for an event and converts this to m hours, n minute and p seconds. For example if the user enter 7840, the program display 2:10:40.
THE ANSWER IS LOADING....
https://t.me/PROGRAMINGLANGUAGES1
Write a program that prompts a user to enter the number of second elapsed for an event and converts this to m hours, n minute and p seconds. For example if the user enter 7840, the program display 2:10:40.
THE ANSWER IS LOADING....
https://t.me/PROGRAMINGLANGUAGES1
❤3
ANSWER for ✍️👉🏿https://t.me/PROGRAMINGLANGUAGES1/162
#include <iostream>
using namespace std;
int main()
{
int x;
cout << "inter time elapsed in second:" << endl;
cin >> x ;
int m = x/3600;
x = x% 3600;
int n = x/60 ;
x = x% 60;
int p = x;
cout << m <<"hours" <<":"<< n <<"minutes"<<":" << p <<"seconds!"<< endl;
return 0;
}
#include <iostream>
using namespace std;
int main()
{
int x;
cout << "inter time elapsed in second:" << endl;
cin >> x ;
int m = x/3600;
x = x% 3600;
int n = x/60 ;
x = x% 60;
int p = x;
cout << m <<"hours" <<":"<< n <<"minutes"<<":" << p <<"seconds!"<< endl;
return 0;
}
Telegram
LEARN TO CODE
#QUESTION TO ANSWER IN C++
Write a program that prompts a user to enter the number of second elapsed for an event and converts this to m hours, n minute and p seconds. For example if the user enter 7840, the program display 2:10:40.
THE ANSWER IS LOADING....…
Write a program that prompts a user to enter the number of second elapsed for an event and converts this to m hours, n minute and p seconds. For example if the user enter 7840, the program display 2:10:40.
THE ANSWER IS LOADING....…
👍2
👍2
learnToCode.@telegram channel.pdf
577.7 KB
c++ exam of HU🔖🔖
credit :-<topStudents>
compiled by :- <LearnToCode>
credit :-<topStudents>
compiled by :- <LearnToCode>
❤1👍1
For java learners, these materials helps you alot.
all materials for coding,
@ https://t.me/PROGRAMINGLANGUAGES1
all materials for coding,
@ https://t.me/PROGRAMINGLANGUAGES1
👍1🔥1
