Sajid was booking a train ticket from Chennai to Delhi for his family. Two of the relatives was interested in joining that journey from different places with their family members So, Sajid booked tickets for those persons also along with his family members. He wants to know the total number of tickets for this travel. Can you help him in finding the total number of passengers?
#include <stdio.h>
int main(){
int num1,num2,num3;
int sum;
scanf("%d %d %d",&num1,&num2,&num3);
sum=num1+num2+num3;
printf("%d",sum);
return 0;}
Comments
Post a Comment