0

Anyone help me out? What is the problem in below program?

#include <iostream> using namespace std; int main() { //your code goes here int p,s; cout<<"enter no. of passengers"<<endl; cin>>p; s=50-(p%50); cout<<"no. of vacant seat"<<"s"<<endl; return 0; }

8th Oct 2021, 6:31 PM
Kunj Pandya
Kunj Pandya - avatar
4 Réponses
+ 2
But u used cout statement enter no of passengers..... U dont need to write it and also last one write only input and print only value
8th Oct 2021, 6:44 PM
A S Raghuvanshi
A S Raghuvanshi - avatar
+ 1
Don't print any string just print value only first read the input and expected output format read your question again
8th Oct 2021, 6:33 PM
A S Raghuvanshi
A S Raghuvanshi - avatar
+ 1
Ya, got it, thanks Alena Sherine
8th Oct 2021, 6:45 PM
Kunj Pandya
Kunj Pandya - avatar
0
Yes here I am trying to print value not string Alena Sherine
8th Oct 2021, 6:37 PM
Kunj Pandya
Kunj Pandya - avatar