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; }
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
+ 1
Don't print any string just print value only first read the input and expected output format read your question again
+ 1
Ya, got it, thanks Alena Sherine
0
Yes here I am trying to print value not string Alena Sherine